OLD | NEW |
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 |
OLD | NEW |