diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index befa19c..8c56375 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -298,7 +298,7 @@ function locale_translate_batch_refresh(array &$context) { } if ($strings) { // Initialize multi-step string refresh. - $context['message'] = t('Updating translations for JavaScript and configuration strings.'); + $context['message'] = t('Updating translations for JavaScript and default configuration.'); $context['sandbox']['refresh']['strings'] = array_unique($strings); $context['sandbox']['refresh']['languages'] = $langcodes; $context['sandbox']['refresh']['names'] = array(); @@ -306,7 +306,7 @@ function locale_translate_batch_refresh(array &$context) { $context['sandbox']['refresh']['count'] = count($strings); // We will update strings on later steps. - $context['finished'] = 1 - 1 / $context['sandbox']['refresh']['count']; + $context['finished'] = 0; } else { $context['finished'] = 1; @@ -336,6 +336,7 @@ function locale_translate_batch_refresh(array &$context) { } } else { + $context['message'] = t('Updated default configuration.'); $context['finished'] = 1; } }