_locale_refresh_configuration(array $langcodes, array $lids)
Refreshes configuration after string translations have been updated.
array $langcodes: Language codes for updated translations.
array $lids: List of string identifiers that have been updated / created.
function _locale_refresh_configuration(array $langcodes, array $lids) { if ($lids && $langcodes && $names = Locale::config()->getStringNames($lids)) { Locale::config()->updateConfigTranslations($names, $langcodes); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/_locale_refresh_configuration/8.1.x