// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <string>

#if defined(OS_CHROMEOS)
#include "base/basictypes.h"
#include "base/string_util.h"
#endif

namespace l10n_util {

// Return true blindly for now.
bool IsLocaleSupportedByOS(const std::string& locale) {
#if !defined(OS_CHROMEOS)
  return true;
#else
  // 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[] = {"am", "sw"};
  for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) {
    if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
      return false;
  }
  return true;
#endif
}

}  // namespace l10n_util

// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <string>

#if defined(OS_CHROMEOS)
#include "base/basictypes.h"
#include "base/string_util.h"
#endif

namespace l10n_util {

// Return true blindly for now.
bool IsLocaleSupportedByOS(const std::string& locale) {
#if !defined(OS_CHROMEOS)
  return true;
#else
  // We don't have translations yet for am, fa and sw.
  // We don't have fonts for te and kn, yet.
  // TODO(jungshik): Once the above issues are resolved, change this back
  // to return true.
  static const char* kUnsupportedLocales[] = {"am", "fa", "kn", "sw", "te"};
  for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) {
    if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
      return false;
  }
  return true;
#endif
}

}  // namespace l10n_util

--- 
+++ 
@@ -16,11 +16,10 @@
 #if !defined(OS_CHROMEOS)
   return true;
 #else
-  // We don't have translations yet for am, fa and sw.
-  // We don't have fonts for te and kn, yet.
+  // 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[] = {"am", "fa", "kn", "sw", "te"};
+  static const char* kUnsupportedLocales[] = {"am", "sw"};
   for (size_t i = 0; i < arraysize(kUnsupportedLocales); ++i) {
     if (LowerCaseEqualsASCII(locale, kUnsupportedLocales[i]))
       return false;
Enable Kannada, Farsi and Telugu on CrOS

BUG=chromium-os:21717
TEST=On login screen, Kannada, Telugu and Farsi can be selected.
Review URL: http://codereview.chromium.org/8301012

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@105835 0039d316-1c4b-4281-b951-d872f2087c98
