From b1ed88476c4f248d5f6a220563a5da7f14b834c2 Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 16 Jul 2019 13:51:00 +0800 Subject: [PATCH] Use traditional chinese for Hong Kong --- src/utils/translation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/translation.cpp b/src/utils/translation.cpp index d4db39dc4..b442cabd6 100644 --- a/src/utils/translation.cpp +++ b/src/utils/translation.cpp @@ -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 langs = StringUtils::split(language, ':');