Index: chrome/common/l10n_util.cc |
=================================================================== |
--- chrome/common/l10n_util.cc (revision 12453) |
+++ chrome/common/l10n_util.cc (working copy) |
@@ -128,6 +128,9 @@ |
if (test_locale != locale) |
return false; |
+ if (!l10n_util::IsLocaleSupportedByOS(locale)) |
+ return false; |
+ |
FilePath test_path = FilePath::FromWStringHack(locale_path) |
.Append(FilePath::FromWStringHack(locale)) |
.ReplaceExtension(kLocaleFileExtension); |
@@ -665,6 +668,8 @@ |
// Filter out the names that have aliases. |
if (IsDuplicateName(locale_name)) |
continue; |
+ if (!IsLocaleSupportedByOS(ASCIIToWide(locale_name))) |
+ continue; |
// Normalize underscores to hyphens because that's what our locale files |
// use. |
std::replace(locale_name.begin(), locale_name.end(), '_', '-'); |