Automatic interface translation import

  1. 7.x drupal-7.x/includes/locale.inc locale-autoimport
  2. 6.x drupal-6.x/includes/locale.inc locale-autoimport

Functions to create batches for importing translations.

These functions can be used to import translations for installed modules.

File

drupal-7.x/includes/locale.inc, line 2183
Administration functions for locale.module.

Functions

Namesort descending Location Description
locale_batch_by_component drupal-7.x/includes/locale.inc Prepare a batch to run when installing modules or enabling themes.
locale_batch_by_language drupal-7.x/includes/locale.inc Prepare a batch to import translations for all enabled modules in a given language.
_locale_batch_build drupal-7.x/includes/locale.inc Build a locale batch from an array of files.
_locale_batch_import drupal-7.x/includes/locale.inc Perform interface translation import as a batch step.
_locale_batch_language_finished drupal-7.x/includes/locale.inc Finished callback of language addition locale import batch. Inform the user of translation files imported.
_locale_batch_system_finished drupal-7.x/includes/locale.inc Finished callback of system page locale import batch. Inform the user of translation files imported.