_locale_refresh_configuration

_locale_refresh_configuration(array $langcodes, array $lids)

Refreshes configuration after string translations have been updated.

Parameters

array $langcodes: Language codes for updated translations.

array $lids: List of string identifiers that have been updated / created.

File

core/modules/locale/locale.module, line 1101
Enables the translation of the user interface to languages other than English.

Code

function _locale_refresh_configuration(array $langcodes, array $lids) {
  if ($lids && $langcodes && $names = Locale::config()->getStringNames($lids)) {
    Locale::config()->updateConfigTranslations($names, $langcodes);
  }
}
doc_Drupal
2016-10-29 09:57:15
Comments
Leave a Comment

Please login to continue.