Commit e01fb4e9 authored by alexpott's avatar alexpott

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

parent 0f8b6aaa
......@@ -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'));
}
......
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