| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <string> | |
| 6 | |
| 7 #if defined(OS_CHROMEOS) | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/strings/string_util.h" | |
| 10 #endif | |
| 11 | |
| 12 namespace l10n_util { | |
| 13 | |
| 14 // Return true blindly for now. | |
| 15 bool IsLocaleSupportedByOS(const std::string& locale) { | |
| 16 #if !defined(OS_CHROMEOS) | |
| 17 return true; | |
| 18 #else | |
| 19 // We don't have translations yet for am, and sw. | |
| 20 // TODO(jungshik): Once the above issues are resolved, change this back | |
| 21 // to return true. | |
| 22 static const char* kUnsupportedLocales[] = {"am", "sw"}; | |
| 23 for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) { | |
| 24 if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i])) | |
| 25 return false; | |
| 26 } | |
| 27 return true; | |
| 28 #endif | |
| 29 } | |
| 30 | |
| 31 } // namespace l10n_util | |
| OLD | NEW |