Added support for the zh_TW locale

This commit is contained in:
Leon Styhre 2024-12-17 18:30:42 +01:00
parent 3b028195eb
commit cd1fc5f37c
5 changed files with 2815 additions and 2 deletions

View file

@ -579,6 +579,7 @@ void GuiMenu::openUIOptions()
applicationLanguage->add("日本語", "ja_JP", selectedApplicationLanguage == "ja_JP");
applicationLanguage->add("한국어", "ko_KR", selectedApplicationLanguage == "ko_KR");
applicationLanguage->add("简体中文", "zh_CN", selectedApplicationLanguage == "zh_CN");
applicationLanguage->add("繁體中文", "zh_TW", selectedApplicationLanguage == "zh_TW");
// If there are no objects returned, then there must be a manually modified entry in the
// configuration file. Simply set the application langauge to "automatic" in this case.
if (applicationLanguage->getSelectedObjects().size() == 0)

View file

@ -119,7 +119,8 @@ std::vector<std::pair<std::string, std::string>> ThemeData::sSupportedLanguages
{"sv_SE", "SVENSKA"},
{"ja_JP", "日本語"},
{"ko_KR", "한국어"},
{"zh_CN", "简体中文"}};
{"zh_CN", "简体中文"},
{"zh_TW", "繁體中文"}};
std::map<std::string, std::map<std::string, std::string>> ThemeData::sPropertyAttributeMap
// The data type is defined by the parent property.

View file

@ -44,7 +44,8 @@ namespace Utils
{{"sv"}, {"SE"}},
{{"ja"}, {"JP"}},
{{"ko"}, {"KR"}},
{{"zh"}, {"CN"}}};
{{"zh"}, {"CN"}},
{{"zh"}, {"TW"}}};
// clang-format on
std::string sCurrentLocale {"en_US"};

View file

@ -14,3 +14,4 @@ sv_SE
ja_JP
ko_KR
zh_CN
zh_TW

2809
locale/po/zh_TW.po Normal file

File diff suppressed because it is too large Load diff