You are here

function countries_i18n_string_refresh in Countries 8

i18n_string callback for refreshing all strings.

1 string reference to 'countries_i18n_string_refresh'
countries_i18n_i18n_string_info in modules/countries_i18n/countries_i18n.module
Implements hook_i18n_string_info().

File

modules/countries_i18n/countries_i18n.module, line 96
Provides translation for countries module.

Code

function countries_i18n_string_refresh() {

  // Direct db calls to avoid potential calls to countries_translate().
  $result = countries_get_countries();
  foreach ($result as $country) {
    i18n_string_object_update('country', $country);
  }
  return TRUE;
}