Home
last modified time | relevance | path

Searched refs:cld_language (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/components/translate/language_detection/
Dlanguage_detection_util.cc95 int cld_language = 0; in DetermineTextLanguage() local
102 cld_language = in DetermineTextLanguage()
105 is_valid_language = cld_language != NUM_LANGUAGES && in DetermineTextLanguage()
106 cld_language != UNKNOWN_LANGUAGE && in DetermineTextLanguage()
107 cld_language != TG_UNKNOWN_LANGUAGE; in DetermineTextLanguage()
119 cld_language = language3[0]; in DetermineTextLanguage()
120 is_valid_language = cld_language != CLD2::NUM_LANGUAGES && in DetermineTextLanguage()
121 cld_language != CLD2::UNKNOWN_LANGUAGE && in DetermineTextLanguage()
122 cld_language != CLD2::TG_UNKNOWN_LANGUAGE; in DetermineTextLanguage()
150 LanguageCodeWithDialects(static_cast<Language>(cld_language)); in DetermineTextLanguage()
[all …]
Dlanguage_detection_util_unittest.cc102 std::string cld_language; in TEST_F() local
107 &cld_language, in TEST_F()
110 EXPECT_EQ("en", cld_language); in TEST_F()
122 std::string cld_language; in TEST_F() local
127 &cld_language, in TEST_F()
130 EXPECT_EQ("en", cld_language); in TEST_F()
143 std::string cld_language; in TEST_F() local
148 &cld_language, in TEST_F()
151 EXPECT_EQ("en", cld_language); in TEST_F()
163 std::string cld_language; in TEST_F() local
[all …]
Dlanguage_detection_util.h18 std::string* cld_language,
34 const std::string& cld_language);
40 const std::string& cld_language);
/external/chromium_org/chrome/renderer/translate/
Dtranslate_helper.cc103 std::string cld_language; in PageCaptured() local
106 content_language, html_lang, contents, &cld_language, &is_cld_reliable); in PageCaptured()
118 details.cld_language = cld_language; in PageCaptured()
/external/chromium_org/chrome/common/translate/
Dlanguage_detection_details.h28 std::string cld_language; member
/external/chromium_org/chrome/browser/ui/webui/translate_internals/
Dtranslate_internals_handler.cc51 new base::StringValue(details.cld_language)); in OnLanguageDetection()
/external/chromium/chrome/browser/translate/
Dtranslate_manager.cc52 const char* cld_language; // Language the CLD reports. member
183 return kLocaleToCLDLanguages[i].cld_language; in GetLanguageCode()
/external/chromium_org/chrome/common/
Drender_messages.h232 IPC_STRUCT_TRAITS_MEMBER(cld_language)