diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index ce5ca8ad10..2b4473b27c 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1749,13 +1749,27 @@ function install_import_translations(&$install_state) { 'title' => t('Updating translations.'), 'progress_message' => '', 'error_message' => t('Error importing translation files'), - 'finished' => 'locale_translation_batch_fetch_finished', + 'finished' => '_install_locale_translation_batch_fetch_finished', 'file' => drupal_get_path('module', 'locale') . '/locale.batch.inc', ]; return $batch; } } +/** + * Implements callback_batch_finished(). + * + * @param bool $success + * TRUE if batch successfully completed. + * @param array $results + * Batch results. + */ +function _install_locale_translation_batch_fetch_finished($success, $results) { + if ($success) { + \Drupal::state()->set('locale.translation_last_checked', REQUEST_TIME); + } +} + /** * Tells the translation import process that Drupal core is installed. * @@ -1828,6 +1842,7 @@ function install_finish_translations(&$install_state) { $batches = []; if (count($projects) > 1) { $options = _locale_translation_default_update_options(); + $options['finish_feedback'] = FALSE; if ($batch = locale_translation_batch_update_build([], array_keys($languages), $options)) { $batches[] = $batch; }