summaryrefslogtreecommitdiffstats
path: root/ui/base/l10n
diff options
context:
space:
mode:
authorjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 17:15:54 +0000
committerjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 17:15:54 +0000
commit8bdea109ebd33a532996433ef4d206c11d536ef8 (patch)
treeb5ac123d6f2cf25a99cd8e8294551e6cf008e773 /ui/base/l10n
parent44e56fdb2ff69e33109d9817a719462728facd80 (diff)
downloadchromium_src-8bdea109ebd33a532996433ef4d206c11d536ef8.zip
chromium_src-8bdea109ebd33a532996433ef4d206c11d536ef8.tar.gz
chromium_src-8bdea109ebd33a532996433ef4d206c11d536ef8.tar.bz2
Block {am, fa, sw} and {kn, te} on CrOS and roll ICU to 98343
The former is blocked until we have translation back for them. For ChromeOS R14, we'll not have them ready. The former is blocked until we have fonts for them to use on CrOS. This change will be reverted once two issues above are resolved. See http://codereview.chromium.org/7725002/ for the ICU part that removed the CrOS-specific ICU data file. BUG=chromium-os:19465 TEST=The UI language list does not include the above 5 languages on CrOS. Review URL: http://codereview.chromium.org/7726003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/l10n')
-rw-r--r--ui/base/l10n/l10n_util_posix.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/base/l10n/l10n_util_posix.cc b/ui/base/l10n/l10n_util_posix.cc
index 3b4604d..cbe54c3 100644
--- a/ui/base/l10n/l10n_util_posix.cc
+++ b/ui/base/l10n/l10n_util_posix.cc
@@ -4,11 +4,29 @@
#include <string>
+#if defined(OS_CHROMEOS)
+#include "base/basictypes.h"
+#include "base/string_util.h"
+#endif
+
namespace l10n_util {
// Return true blindly for now.
bool IsLocaleSupportedByOS(const std::string& locale) {
+#if !defined(OS_CHROMEOS)
+ return true;
+#else
+ // We don't have translations yet for am, fa and sw.
+ // We don't have fonts for te and kn, yet.
+ // TODO(jungshik): Once the above issues are resolved, change this back
+ // to return true.
+ static const char* kUnsupportedLocales[] = {"am", "fa", "kn", "sw", "te"};
+ for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) {
+ if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
+ return false;
+ }
return true;
+#endif
}
} // namespace l10n_util