diff options
author | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 20:36:23 +0000 |
---|---|---|
committer | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 20:36:23 +0000 |
commit | 2b966e88039084ef87b273cb0dfeb60c8dab4d4c (patch) | |
tree | e66358a277cd2f15fd922762ffdb01e49b80f754 /app | |
parent | b9954ef12fe3773bfb80a66aa1401e770da2b52d (diff) | |
download | chromium_src-2b966e88039084ef87b273cb0dfeb60c8dab4d4c.zip chromium_src-2b966e88039084ef87b273cb0dfeb60c8dab4d4c.tar.gz chromium_src-2b966e88039084ef87b273cb0dfeb60c8dab4d4c.tar.bz2 |
Fix language switch ignored changing RTL-ness.
BUG=35248
TEST=Switch the language used by the ChromiumOS using the top left corner menu of the Network selection wizard.
Or you may use the following command on desktop using Chromium (built with GYP_DEFINES="chromeos=1"):
out/Debug/chrome --login-manager --login-screen=network
Review URL: http://codereview.chromium.org/1148003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/l10n_util.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc index 96659f8..503f708 100644 --- a/app/l10n_util.cc +++ b/app/l10n_util.cc @@ -231,6 +231,9 @@ std::string ICULocaleName(const std::string& locale_string) { return locale_string; } +// Represents the locale-specific ICU text direction. +l10n_util::TextDirection g_icu_text_direction = l10n_util::UNKNOWN_DIRECTION; + // Sets the default locale of ICU. // Once the application locale of Chrome in GetApplicationLocale is determined, // the default locale of ICU need to be changed to match the application locale @@ -247,6 +250,7 @@ void SetICUDefaultLocale(const std::string& locale_string) { // presence of actual locale data). However, // it does not hurt to have it as a sanity check. DCHECK(U_SUCCESS(error_code)); + g_icu_text_direction = l10n_util::UNKNOWN_DIRECTION; } // Returns true if |locale_name| has an alias in the ICU data file. @@ -434,9 +438,6 @@ void SplitAndNormalizeLanguageList(const std::string& env_language, namespace l10n_util { -// Represents the locale-specific ICU text direction. -static TextDirection g_icu_text_direction = UNKNOWN_DIRECTION; - std::string GetApplicationLocale(const std::wstring& pref_locale) { #if !defined(OS_MACOSX) |