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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "app/l10n_util.h" 5 #include "app/l10n_util.h"
6 #include "base/basictypes.h"
7 #include "base/string_util.h"
6 8
7 namespace l10n_util { 9 namespace l10n_util {
8 10
9 // Return true blindly for now.
10 bool IsLocaleSupportedByOS(const std::string& locale) { 11 bool IsLocaleSupportedByOS(const std::string& locale) {
12 #if defined(OS_CHROMEOS)
13 // ChromeOS does not yet support these locales supported on Linux.
14 const char* kUnsupportedLocales[] = {
15 "bn", "gu", "mr", "ta", "ml", "kn", "or", "te", "am", "sw"
16 };
17 for (int i = 0; i < arraysize(kUnsupportedLocales); ++i) {
18 if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
19 return false;
20 }
21 #endif
11 return true; 22 return true;
12 } 23 }
13 24
14 } // namespace l10n_util 25 } // namespace l10n_util
OLDNEW
« 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