Commit ed7a04af authored by webchick's avatar webchick
Browse files

Issue #1757078 by julien, Gábor Hojtsy, LoMo, beejeebus: Fixed When installing...

Issue #1757078 by julien, Gábor Hojtsy, LoMo, beejeebus: Fixed When installing Drupal in a non-English language, we do not see the 'congratulations' page.
parent 1ca01c77
...@@ -352,10 +352,15 @@ function locale_themes_enabled($themes) { ...@@ -352,10 +352,15 @@ function locale_themes_enabled($themes) {
* identified projects for the components. * identified projects for the components.
*/ */
function locale_system_update($components) { function locale_system_update($components) {
// Skip running the translation imports if in the installer,
// because it would break out of the installer flow. We have
// built-in support for translation imports in the installer.
if (!drupal_installation_attempted()) {
include_once drupal_get_path('module', 'locale') . '/locale.bulk.inc'; include_once drupal_get_path('module', 'locale') . '/locale.bulk.inc';
if ($batch = locale_translate_batch_import_files(array(), TRUE)) { if ($batch = locale_translate_batch_import_files(array(), TRUE)) {
batch_set($batch); batch_set($batch);
} }
}
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment