Issue #2346323 by webflo: Fixed Set default language during installation.

8.0.x
Alex Pott 2014-09-28 22:43:34 +02:00
parent 0f8b6aaad6
commit e01fb4e948
1 changed files with 5 additions and 1 deletions

View File

@ -1228,7 +1228,10 @@ function install_download_translation(&$install_state) {
}
// The download was successful, reload the page in the new language.
install_goto(install_redirect_url($install_state));
$install_state['translations'][$install_state['parameters']['langcode']] = TRUE;
if ($install_state['interactive']) {
install_goto(install_redirect_url($install_state));
}
}
/**
@ -1559,6 +1562,7 @@ function install_download_additional_translations_operations(&$install_state) {
// remove English.
if ($langcode != 'en') {
\Drupal::config('system.site')->set('langcode', $langcode)->save();
\Drupal::service('language.default')->set($language);
entity_delete_multiple('configurable_language', array('en'));
}