function _l10n_update_batch_status_operations in Localization update 7.2
Constructs 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.
2 calls to _l10n_update_batch_status_operations()
- l10n_update_batch_status_build in ./
l10n_update.compare.inc - Builds a batch to get the status of remote and local translation files.
- l10n_update_batch_update_build in ./
l10n_update.fetch.inc - Builds a batch to check, download and import project translations.
File
- ./
l10n_update.compare.inc, line 341 - The API for comparing project translation status with available translation.
Code
function _l10n_update_batch_status_operations(array $projects, array $langcodes, array $options = array()) {
$operations = array();
foreach ($projects as $project) {
foreach ($langcodes as $langcode) {
// Check status of local and remote translation sources.
$operations[] = array(
'l10n_update_batch_status_check',
array(
$project,
$langcode,
$options,
),
);
}
}
return $operations;
}