mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Added Chinese translation by bluesky404.
This commit is contained in:
@@ -233,7 +233,7 @@ namespace boss {
|
||||
}
|
||||
|
||||
Language::Language(const unsigned int code) {
|
||||
Construct(_code);
|
||||
Construct(code);
|
||||
}
|
||||
|
||||
Language::Language(const std::string& nameOrISOCode) {
|
||||
@@ -245,6 +245,8 @@ namespace boss {
|
||||
Construct(g_lang_russian);
|
||||
else if (nameOrISOCode == "Français" || nameOrISOCode == "fra")
|
||||
Construct(g_lang_french);
|
||||
else if (nameOrISOCode == "简体中文" || nameOrISOCode == "zho")
|
||||
Construct(g_lang_chinese);
|
||||
else
|
||||
Construct(g_lang_any);
|
||||
}
|
||||
@@ -276,6 +278,11 @@ namespace boss {
|
||||
_isoCode = "fra";
|
||||
_locale = "fr.UTF-8";
|
||||
}
|
||||
else if (_code == g_lang_chinese) {
|
||||
_name = "简体中文";
|
||||
_isoCode = "zho";
|
||||
_locale = "zh.UTF-8";
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Language::Code() const {
|
||||
|
||||
Reference in New Issue
Block a user