function _locale_translation_batch_status_operations
Same name in other branches
- 9 core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
- 8.9.x core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
- 11.x core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
Constructs batch operations for 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.
2 calls to _locale_translation_batch_status_operations()
- locale_translation_batch_status_build in core/
modules/ locale/ locale.compare.inc - Builds a batch to get the status of remote and local translation files.
- locale_translation_batch_update_build in core/
modules/ locale/ locale.fetch.inc - Builds a batch to check, download and import project translations.
File
-
core/
modules/ locale/ locale.compare.inc, line 265
Code
function _locale_translation_batch_status_operations($projects, $langcodes, $options = []) {
$operations = [];
foreach ($projects as $project) {
foreach ($langcodes as $langcode) {
// Check version and status translation sources.
$operations[] = [
'locale_translation_batch_version_check',
[
$project,
$langcode,
],
];
$operations[] = [
'locale_translation_batch_status_check',
[
$project,
$langcode,
$options,
],
];
}
}
return $operations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.