Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2247)

Unified Diff: app/l10n_util_posix.cc

Issue 2040010: Language selectiton menu on ChromeOS should not list the following... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/l10n_util_posix.cc
===================================================================
--- app/l10n_util_posix.cc (revision 46817)
+++ app/l10n_util_posix.cc (working copy)
@@ -3,11 +3,22 @@
// found in the LICENSE file.
#include "app/l10n_util.h"
+#include "base/basictypes.h"
+#include "base/string_util.h"
namespace l10n_util {
-// Return true blindly for now.
bool IsLocaleSupportedByOS(const std::string& locale) {
+#if defined(OS_CHROMEOS)
+ // ChromeOS does not yet support these locales supported on Linux.
+ const char* kUnsupportedLocales[] = {
+ "bn", "gu", "mr", "ta", "ml", "kn", "or", "te", "am", "sw"
+ };
+ for (int i = 0; i < arraysize(kUnsupportedLocales); ++i) {
+ if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
+ return false;
+ }
+#endif
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698