function locale_translation_check_projects_batch

locale_translation_check_projects_batch($projects = array(), $langcodes = array())

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 'locale.translation_status'.

Parameters

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

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

File

core/modules/locale/locale.compare.inc, line 210
The API for comparing project translation status with available translation.

Code

function locale_translation_check_projects_batch($projects = array(), $langcodes = array()) {
  // Build and set the batch process.
  $batch = locale_translation_batch_status_build($projects, $langcodes);
  batch_set($batch);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.compare.inc/function/locale_translation_check_projects_batch/8.1.x