Commit 074455f8 authored by mlcui's avatar mlcui Committed by Commit Bot

Allow Amharic and Swahili to be selected as a CrOS device language

We should now have translations for these two languages. The pak files
were already being built and shipped with Chrome OS, but couldn't be
used as they were explicitly disabled.

Test: CL author switched device language and saw translated strings
Bug: 1093583
Change-Id: I401baabe4af8f04d9918332a7f26badf720038ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2459135Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Michael Cui <mlcui@google.com>
Cr-Commit-Position: refs/heads/master@{#818671}
parent d17049f1
...@@ -16,20 +16,8 @@ ...@@ -16,20 +16,8 @@
namespace l10n_util { namespace l10n_util {
bool IsLocaleSupportedByOS(const std::string& locale) { bool IsLocaleSupportedByOS(const std::string& locale) {
#if defined(OS_CHROMEOS)
// We don't have translations yet for am, and sw.
// TODO(jungshik): Once the above issues are resolved, change this back
// to return true.
static const char kUnsupportedLocales[][3] = {"am", "sw"};
for (size_t i = 0; i < base::size(kUnsupportedLocales); ++i) {
if (base::LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
return false;
}
return true;
#else
// Return true blindly for now. // Return true blindly for now.
return true; return true;
#endif
} }
} // namespace l10n_util } // namespace l10n_util
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment