diff -u b/core/includes/install.core.inc b/core/includes/install.core.inc --- b/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -447,15 +447,16 @@ } } - // Use the language from the profile configuration, if available, to override - // the language previously set in the parameters. - if (isset($install_state['profile_info']['distribution']['langcode'])) { - $install_state['parameters']['langcode'] = $install_state['profile_info']['distribution']['langcode']; - } - // Use the language from profile configuration if available. if (isset($install_state['profile_info']['config_install']) && $install_state['profile_info']['config_install']) { - $install_state['parameters']['langcode'] = $install_state['profile_info'] ['config']['system.site']['default_langcode']; + $install_state['parameters']['langcode'] = $install_state['profile_info']['config']['system.site']['default_langcode']; + } + else { + // Otherwise, Use the language from the profile configuration, if available, + // to override the language previously set in the parameters. + if (isset($install_state['profile_info']['distribution']['langcode'])) { + $install_state['parameters']['langcode'] = $install_state['profile_info']['distribution']['langcode']; + } } // Set the default language to the selected language, if any.