function locale_system_update in Drupal 6
Same name and namespace in other branches
- 8 core/modules/locale/locale.module \locale_system_update()
- 7 modules/locale/locale.module \locale_system_update()
- 9 core/modules/locale/locale.module \locale_system_update()
- 10 core/modules/locale/locale.module \locale_system_update()
Imports translations when new modules or themes are installed or enabled.
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 481 - 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 'includes/locale.inc';
if ($batch = locale_batch_by_component($components)) {
batch_set($batch);
}
}