Home | History | Annotate | Download | only in common

Lines Matching defs:language

12   // The language.
13 const char* language;
15 // The corresponding language and region, used by the dictionaries.
58 // This function returns the language-region version of language name.
63 if (g_supported_spellchecker_languages[i].language == input_language) {
79 // The language input.
80 const char* language;
110 // version string, depending on the language.
111 std::string language = GetSpellCheckLanguageRegion(input_language);
112 std::string versioned_bdict_file_name(language + kDefaultVersionString +
115 if (language == special_version_string[i].language) {
117 language + special_version_string[i].version + ".bdic";
125 std::string GetCorrespondingSpellCheckLanguage(const std::string& language) {
126 // Look for exact match in the Spell Check language list.
129 // First look for exact match in the language region of the list.
131 g_supported_spellchecker_languages[i].language);
132 if (spellcheck_language == language)
133 return language;
138 if (spellcheck_language_region == language)
139 return g_supported_spellchecker_languages[i].language;
142 // Look for a match by comparing only language parts. All the 'en-RR'
149 std::string language_part(language, 0, language.find('-'));
168 languages->push_back(g_supported_spellchecker_languages[i].language);