Home
last modified time | relevance | path

Searched refs:locale_name (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/ui/base/l10n/
Dl10n_util.cc188 bool IsDuplicateName(const std::string& locale_name) { in IsDuplicateName() argument
203 if (LowerCaseEqualsASCII(locale_name.substr(0, 3), "es_")) in IsDuplicateName()
206 if (base::strcasecmp(kDuplicateNames[i], locale_name.c_str()) == 0) in IsDuplicateName()
216 bool IsLocalePartiallyPopulated(const std::string& locale_name) { in IsLocalePartiallyPopulated() argument
221 return !l10n_util::IsLocaleNameTranslated("en", locale_name); in IsLocalePartiallyPopulated()
280 std::string locale_name = uloc_getAvailable(i); in New() local
282 if (IsDuplicateName(locale_name)) in New()
286 if (IsLocalePartiallyPopulated(locale_name)) in New()
288 if (!l10n_util::IsLocaleSupportedByOS(locale_name)) in New()
292 std::replace(locale_name.begin(), locale_name.end(), '_', '-'); in New()
[all …]
/external/chromium/chrome/common/extensions/
Dextension_l10n_util.cc158 const std::string& locale_name, in AddLocale() argument
163 if (locale_name.find(".") == 0) in AddLocale()
165 if (chrome_locales.find(locale_name) == chrome_locales.end()) { in AddLocale()
169 locale_name.c_str()); in AddLocale()
175 valid_locales->insert(locale_name); in AddLocale()
178 locale_name.c_str()); in AddLocale()
217 std::string locale_name = locale_folder.BaseName().MaybeAsASCII(); in GetValidLocales() local
218 if (locale_name.empty()) { in GetValidLocales()
224 locale_name, in GetValidLocales()
Dextension_l10n_util.h58 const std::string& locale_name,
/external/chromium_org/chrome/common/extensions/
Dextension_l10n_util.cc284 const std::string& locale_name, in AddLocale() argument
289 if (locale_name.find(".") == 0) in AddLocale()
291 if (chrome_locales.find(locale_name) == chrome_locales.end()) { in AddLocale()
295 locale_name.c_str()); in AddLocale()
301 valid_locales->insert(locale_name); in AddLocale()
304 locale_name.c_str()); in AddLocale()
352 std::string locale_name = locale_folder.BaseName().MaybeAsASCII(); in GetValidLocales() local
353 if (locale_name.empty()) { in GetValidLocales()
359 locale_name, in GetValidLocales()
Dextension_l10n_util.h59 const std::string& locale_name,
/external/chromium_org/chrome/browser/chromeos/login/
Dlanguage_list.cc39 base::string16 locale_name = locale_names_[index]; in GetLanguageNameAt() local
40 base::i18n::AdjustStringForLocaleDirection(&locale_name); in GetLanguageNameAt()
50 UTF16ToUTF8(locale_name).c_str(), in GetLanguageNameAt()
/external/chromium/chrome/browser/
Dlanguage_combobox_model.cc93 string16 locale_name = locale_names_[index]; in GetLanguageNameAt() local
94 base::i18n::AdjustStringForLocaleDirection(&locale_name); in GetLanguageNameAt()
104 UTF16ToUTF8(locale_name).c_str(), in GetLanguageNameAt()
/external/chromium_org/base/i18n/
Drtl.h65 const char* locale_name);
Drtl.cc142 TextDirection GetTextDirectionForLocale(const char* locale_name) { in GetTextDirectionForLocale() argument
144 ULayoutType layout_dir = uloc_getCharacterOrientation(locale_name, &status); in GetTextDirectionForLocale()
/external/chromium/base/i18n/
Drtl.h61 TextDirection GetTextDirectionForLocale(const char* locale_name);
Drtl_unittest.cc17 base::i18n::TextDirection GetTextDirection(const char* locale_name) { in GetTextDirection() argument
18 return base::i18n::GetTextDirectionForLocale(locale_name); in GetTextDirection()
Drtl.cc123 TextDirection GetTextDirectionForLocale(const char* locale_name) { in GetTextDirectionForLocale() argument
125 ULayoutType layout_dir = uloc_getCharacterOrientation(locale_name, &status); in GetTextDirectionForLocale()
/external/chromium_org/chrome/tools/mac_helpers/
Dinfoplist_strings_util.mm60 const char* locale_name) {
64 dir_path, branding_strings_name, locale_name];