function locale_translation_batch_fetch_finished
Same name in other branches
- 9 core/modules/locale/locale.batch.inc \locale_translation_batch_fetch_finished()
- 10 core/modules/locale/locale.batch.inc \locale_translation_batch_fetch_finished()
- 11.x core/modules/locale/locale.batch.inc \locale_translation_batch_fetch_finished()
Implements callback_batch_finished().
Set result message.
Parameters
bool $success: TRUE if batch successfully completed.
array $results: Batch results.
3 string references to 'locale_translation_batch_fetch_finished'
- install_import_translations in core/
includes/ install.core.inc - Imports languages via a batch process during installation.
- locale_translation_batch_fetch_build in core/
modules/ locale/ locale.fetch.inc - Builds a batch to download and import project translations.
- 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.batch.inc, line 218
Code
function locale_translation_batch_fetch_finished($success, $results) {
module_load_include('bulk.inc', 'locale');
if ($success) {
\Drupal::state()->set('locale.translation_last_checked', REQUEST_TIME);
}
return locale_translate_batch_finished($success, $results);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.