diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index ae90760..257317d 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -713,16 +713,17 @@ function locale_form_language_admin_add_form_alter_submit($form, $form_state) { $langcode = $form_state['values']['predefined_langcode']; } - // Download and import translations for the newly added language. - module_load_include('fetch.inc', 'locale'); - $options = _locale_translation_default_update_options(); - $batch = locale_translation_batch_update_build(array(), array($langcode), $options); - batch_set($batch); - - // Create or update all configuration translations for this language. - Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc'); - if ($batch = locale_config_batch_update_components($options, array($langcode))) { + // Download and import translations for the newly added language. + module_load_include('fetch.inc', 'locale'); + $options = _locale_translation_default_update_options(); + $batch = locale_translation_batch_update_build(array(), array($langcode), $options); batch_set($batch); + + // Create or update all configuration translations for this language. + Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc'); + if ($batch = locale_config_batch_update_components($options, array($langcode))) { + batch_set($batch); + } } }