Home
last modified time | relevance | path

Searched refs:language_code (Results 1 – 14 of 14) sorted by relevance

/external/chromium/chrome/browser/ui/webui/options/
Dlanguage_options_handler_unittest.cc53 std::string language_code; in TEST() local
104 std::string language_code; in TEST() local
113 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST()
116 EXPECT_EQ("en-AU", language_code); in TEST()
121 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST()
124 EXPECT_EQ("en-US", language_code); in TEST()
130 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST()
133 EXPECT_EQ("fil", language_code); in TEST()
138 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST()
141 EXPECT_EQ("fr", language_code); in TEST()
[all …]
Dlanguage_options_handler_common.cc147 const std::string language_code = UTF16ToASCII(ExtractStringValue(args)); in UiLanguageChangeCallback() local
148 CHECK(!language_code.empty()); in UiLanguageChangeCallback()
150 "LanguageOptions_UiLanguageChange_%s", language_code.c_str()); in UiLanguageChangeCallback()
152 SetApplicationLocale(language_code); in UiLanguageChangeCallback()
158 const std::string language_code = UTF16ToASCII(ExtractStringValue(args)); in SpellCheckLanguageChangeCallback() local
159 CHECK(!language_code.empty()); in SpellCheckLanguageChangeCallback()
161 "LanguageOptions_SpellCheckLanguageChange_%s", language_code.c_str()); in SpellCheckLanguageChangeCallback()
Dlanguage_options_handler.cc104 const std::string& language_code) { in SetApplicationLocale() argument
106 pref_service->SetString(prefs::kApplicationLocale, language_code); in SetApplicationLocale()
Dlanguage_options_handler.h35 virtual void SetApplicationLocale(const std::string& language_code);
Dlanguage_options_handler_common.h50 virtual void SetApplicationLocale(const std::string& language_code) = 0;
/external/chromium/chrome/browser/chromeos/input_method/
Dinput_method_util.cc70 const std::string language_code = in ReloadMaps() local
75 std::make_pair(language_code, input_method.id)); in ReloadMaps()
78 std::make_pair(input_method.id, language_code)); in ReloadMaps()
88 const char* language_code = kExtraLanguages[i].language_code; in ReloadMaps() local
99 std::make_pair(language_code, input_method.id)); in ReloadMaps()
402 const std::string& language_code) { in NormalizeLanguageCode() argument
405 if (language_code.size() >= 5 && language_code[2] == '_') { in NormalizeLanguageCode()
406 std::string copied_language_code = language_code; in NormalizeLanguageCode()
419 if (language_code.size() != 3) { in NormalizeLanguageCode()
420 return language_code; in NormalizeLanguageCode()
[all …]
Dinput_method_util.h22 const char* language_code; member
61 std::string NormalizeLanguageCode(const std::string& language_code);
118 string16 GetLanguageDisplayNameFromCode(const std::string& language_code);
124 string16 GetLanguageNativeDisplayNameFromCode(const std::string& language_code);
147 const std::string& language_code,
155 const std::string& language_code,
179 void EnableInputMethods(const std::string& language_code, InputMethodType type,
Dinput_method_util_unittest.cc140 EXPECT_EQ("zh", descriptor->language_code); in TEST_F()
/external/chromium/chrome/browser/ui/webui/options/chromeos/
Dcros_language_options_handler.cc92 const std::string language_code = in GetInputMethodList() local
104 language_codes->SetBoolean(language_code, true); in GetInputMethodList()
112 chromeos::input_method::kExtraLanguages[j].language_code; in GetInputMethodList()
131 const std::string language_code = in GetLanguageList() local
133 language_codes.insert(language_code); in GetLanguageList()
138 const char* language_code = in GetLanguageList() local
139 chromeos::input_method::kExtraLanguages[i].language_code; in GetLanguageList()
140 language_codes.insert(language_code); in GetLanguageList()
189 const std::string& language_code) { in SetApplicationLocale() argument
191 language_code, Profile::APP_LOCALE_CHANGED_VIA_SETTINGS); in SetApplicationLocale()
Dcros_language_options_handler.h49 virtual void SetApplicationLocale(const std::string& language_code);
/external/chromium/chrome/browser/chromeos/status/
Dinput_method_menu.cc109 std::wstring GetLanguageName(const std::string& language_code) { in GetLanguageName() argument
111 language_code, g_browser_process->GetApplicationLocale(), true); in GetLanguageName()
598 std::string language_code = in GetTextForIndicator() local
603 if (StartsWithASCII(language_code, "zh-", false)) { in GetTextForIndicator()
605 base::SplitString(language_code, '-', &portions); in GetTextForIndicator()
607 language_code = portions[1]; in GetTextForIndicator()
611 text = StringToUpperASCII(UTF8ToWide(language_code)).substr( in GetTextForIndicator()
627 const std::string language_code in GetTextForMenu() local
630 if (language_code == "ar" || in GetTextForMenu()
631 language_code == "hi" || in GetTextForMenu()
[all …]
/external/chromium/chrome/browser/translate/
Dtranslate_infobar_delegate.cc280 const std::string& language_code) { in GetLanguageDisplayableName() argument
282 language_code, g_browser_process->GetApplicationLocale(), true); in GetLanguageDisplayableName()
330 std::string language_code = *iter; in TranslateInfoBarDelegate() local
332 string16 language_name = GetLanguageDisplayableName(language_code); in TranslateInfoBarDelegate()
339 languages_.insert(iter2, LanguageNamePair(language_code, language_name)); in TranslateInfoBarDelegate()
343 std::string language_code = iter->first; in TranslateInfoBarDelegate() local
344 if (language_code == original_language) { in TranslateInfoBarDelegate()
348 if (language_code == target_language) in TranslateInfoBarDelegate()
Dtranslate_infobar_delegate.h137 static string16 GetLanguageDisplayableName(const std::string& language_code);
/external/chromium/chrome/browser/ui/cocoa/translate/
Dtranslate_infobar_unittest.mm44 virtual string16 GetDisplayNameForLocale(const std::string& language_code) {