diff options
-rw-r--r-- | chrome/browser/chromeos/login/wizard_controller.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc index 5bc99f3..9eecdab 100644 --- a/chrome/browser/chromeos/login/wizard_controller.cc +++ b/chrome/browser/chromeos/login/wizard_controller.cc @@ -964,6 +964,9 @@ void ShowLoginWizard(const std::string& first_screen_name, ResourceBundle::ReloadSharedInstance(locale); CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale; + // Set the application locale here so that the language switch + // menu works properly with the newly loaded locale. + g_browser_process->SetApplicationLocale(loaded_locale); } } } @@ -977,9 +980,6 @@ void ShowLoginWizard(const std::string& first_screen_name, chromeos::CrosLibrary::Get()->GetLoginLibrary()->EmitLoginPromptReady(); if (controller->GetCustomization()) { - if (!locale.empty()) - chromeos::LanguageSwitchMenu::SwitchLanguage(locale); - // Set initial timezone if specified by customization. const std::string timezone_name = controller->GetCustomization()->initial_timezone(); |