| 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;
|
| }
|
|
|
|
|