diff options
author | jshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 22:59:31 +0000 |
---|---|---|
committer | jshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 22:59:31 +0000 |
commit | beffa891fab62c2654e05d64e10ac793ee08a2d2 (patch) | |
tree | c37b9c3eb2a9adea0d85fb066b84e903eb75d4f6 /app | |
parent | e60b6fdf7309b926be3517acb20e8d574e100ce8 (diff) | |
download | chromium_src-beffa891fab62c2654e05d64e10ac793ee08a2d2.zip chromium_src-beffa891fab62c2654e05d64e10ac793ee08a2d2.tar.gz chromium_src-beffa891fab62c2654e05d64e10ac793ee08a2d2.tar.bz2 |
Block Amharic on Windows XP for now. Win XP does not come with Amharic fonts. Even if a user install fonts supporting Amharic, Chrome's UI (including Omnibox) will not use it.
BUG=NONE
TEST=On Win XP, start chrome with '--lang=am' and Chrome's UI language matches your OS locale.
Review URL: http://codereview.chromium.org/377020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/l10n_util_win.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/l10n_util_win.cc b/app/l10n_util_win.cc index b00ba44..0ffdad7 100644 --- a/app/l10n_util_win.cc +++ b/app/l10n_util_win.cc @@ -63,9 +63,10 @@ void HWNDSetRTLLayout(HWND hwnd) { } bool IsLocaleSupportedByOS(const std::string& locale) { - // Block Oriya on Windows XP. - return !(LowerCaseEqualsASCII(locale, "or") && - win_util::GetWinVersion() < win_util::WINVERSION_VISTA); + // Block Oriya and Amharic on Windows XP. + return win_util::GetWinVersion() >= win_util::WINVERSION_VISTA || + (!LowerCaseEqualsASCII(locale, "or") && + !LowerCaseEqualsASCII(locale, "am")); } bool NeedOverrideDefaultUIFont(std::wstring* override_font_family, |