function locale_system_update
locale_system_update($components)
Imports translations when new modules or themes are installed.
This function will either import translation for the component change right away, or start a batch if more files need to be imported.
Parameters
$components: An array of component (theme and/or module) names to import translations for.
File
- modules/locale/locale.module, line 885
- Add language handling functionality and enables the translation of the user interface to languages other than English.
Code
function locale_system_update($components) { include_once DRUPAL_ROOT . '/includes/locale.inc'; if ($batch = locale_batch_by_component($components)) { batch_set($batch); } }
© 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/modules!locale!locale.module/function/locale_system_update/7.x