1 locale.module 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.

@todo This currently imports all .po files available, independent of $components. Once we integrated with update status for project identification, we should revisit and only import files for the identified projects for the components.


$components: An array of component (theme and/or module) names to import translations for.


core/modules/locale/locale.module, line 735
Add language handling functionality and enables the translation of the user interface to languages other than English.


function locale_system_update($components) {
  include_once backdrop_get_path('module', 'locale') . '/locale.bulk.inc';
  if ($batch = locale_translate_batch_import_files(NULL, TRUE)) {