Lines Matching refs:language
94 std::string Taboo::ReplaceLanguageName(const std::string& language, const std::string& displayLangu… in ReplaceLanguageName() argument
101 if (supportedLanguages.find(language) == supportedLanguages.end()) { in ReplaceLanguageName()
103 language.c_str()); in ReplaceLanguageName()
106 std::string key = languageKey + language; in ReplaceLanguageName()
127 language.c_str()); in ReplaceLanguageName()
214 std::tuple<std::string, std::string> Taboo::LanguageFallBack(const std::string& language) in LanguageFallBack() argument
222 int32_t score = LocaleCompare::Compare(language, resLanguage); in LanguageFallBack()
247 std::string language = GetLanguageFromFileName(fileName); in ReadResourceList() local
248 resources[language] = fileName; in ReadResourceList()
258 std::string language = fileName.substr(4); in GetLanguageFromFileName() local
259 if (language[0] == 'b' && language[1] == '+') { in GetLanguageFromFileName()
260 language = language.substr(2); in GetLanguageFromFileName()
262 size_t pos = language.find("+"); in GetLanguageFromFileName()
264 language = language.replace(pos, 1, "-"); in GetLanguageFromFileName()
266 pos = language.find("-r"); in GetLanguageFromFileName()
268 language = language.replace(pos, 2, "-"); in GetLanguageFromFileName()
270 return language; in GetLanguageFromFileName()