function _locale_refresh_configuration

Refreshes configuration after string translations have been updated.

The information that will be refreshed includes:

  • JavaScript translations.
  • Locale cache.

Parameters

array $langcodes: Language codes for updated translations.

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

1 call to _locale_refresh_configuration()
locale_translate_edit_form_submit in drupal/core/modules/locale/locale.pages.inc
Form submission handler for locale_translate_edit_form().

File

drupal/core/modules/locale/locale.module, line 1013
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 = \Drupal\locale\Locale::config()
    ->getStringNames($lids))) {
    Drupal::moduleHandler()
      ->loadInclude('locale', 'bulk.inc');
    locale_config_update_multiple($names, $langcodes);
  }
}