locale_system_update
modules/locale/locale.module, строка 471
- Версии
- 6
locale_system_update($components)
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.
Параметры
$components
An array of component (theme and/or module) names to import
translations for.
Код
<?php
function locale_system_update($components) {
include_once 'includes/locale.inc';
if ($batch = locale_batch_by_component($components)) {
batch_set($batch);
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии