You are here

function l10n_update_check_projects_batch in Localization update 7.2

Gets and stores the status and timestamp of remote po files.

A batch process is used to check for po files at remote locations and (when configured) to check for po files in the local file system. The most recent translation source states are stored in the state variable 'l10n_update_translation_status'.

Parameters

array $projects: Array of project names to check. Defaults to all translatable projects.

array $langcodes: Array of language codes. Defaults to all translatable languages.

1 call to l10n_update_check_projects_batch()
l10n_update_check_projects in ./l10n_update.compare.inc
Check for the latest release of project translations.

File

./l10n_update.compare.inc, line 286
The API for comparing project translation status with available translation.

Code

function l10n_update_check_projects_batch($projects = array(), $langcodes = array()) {

  // Build and set the batch process.
  $batch = l10n_update_batch_status_build($projects, $langcodes);
  batch_set($batch);
}