function locale_translation_check_projects_batch

Same name in other branches
  1. 8.9.x core/modules/locale/locale.compare.inc \locale_translation_check_projects_batch()
  2. 10 core/modules/locale/locale.compare.inc \locale_translation_check_projects_batch()
  3. 11.x core/modules/locale/locale.compare.inc \locale_translation_check_projects_batch()

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.

1 call to locale_translation_check_projects_batch()
locale_translation_check_projects in core/modules/locale/locale.compare.inc
Check for the latest release of project translations.

File

core/modules/locale/locale.compare.inc, line 211

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.