Use traditional chinese for Hong Kong

This commit is contained in:
Benau 2019-07-16 13:51:00 +08:00
parent 009bac7802
commit b1ed88476c

View File

@ -371,6 +371,9 @@ Translations::Translations() //: m_dictionary_manager("UTF-16")
Log::verbose("translation", "Env var LANGUAGE = '%s'.",
language.c_str());
// Hong Kong use tranditional chinese, not zh_CN which C > T
language = StringUtils::findAndReplace(language, "zh_HK", "zh_TW");
if (language.find(":") != std::string::npos)
{
std::vector<std::string> langs = StringUtils::split(language, ':');