function _locale_translation_batch_status_operations

_locale_translation_batch_status_operations($projects, $langcodes, $options = array())

Helper function to construct batch operations checking remote translation status.

Parameters

array $projects: Array of project names to be processed.

array $langcodes: Array of language codes.

array $options: Batch processing options.

Return value

array Array of batch operations.

File

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

Code

function _locale_translation_batch_status_operations($projects, $langcodes, $options = array()) {
  $operations = array();

  foreach ($projects as $project) {
    foreach ($langcodes as $langcode) {
      // Check status of local and remote translation sources.
      $operations[] = array('locale_translation_batch_status_check', array($project, $langcode, $options));
    }
  }

  return $operations;
}

© 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_batch_status_operations/8.1.x