You are here

function simplenews_locale_refresh in Simplenews 6.2

Refresh translatable strings.

See also

_simplenews_subscription_confirmation_text()

1 string reference to 'simplenews_locale_refresh'
simplenews_locale in ./simplenews.module
Implementation of hook_locale().

File

./simplenews.module, line 2249
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_locale_refresh() {
  $keys = array(
    'subscribe_unsubscribed',
    'subscribe_subscribed',
    'unsubscribe_subscribed',
    'unsubscribe_unsubscribed',
    'subscribe_subject',
  );
  foreach ($keys as $key) {
    i18nstrings_update('simplenews:' . $key, _simplenews_subscription_confirmation_text($key, NULL, FALSE));
  }
  return TRUE;
}