From 61490035bb2ecf6979cba10a6ce7573e5e51982c Mon Sep 17 00:00:00 2001 From: Sude Date: Wed, 22 May 2024 20:40:45 +0300 Subject: [PATCH] Fix selecting Chinese language GOG has started to use "zh-Hans" as language code for Chinese in some cases --- include/globalconstants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/globalconstants.h b/include/globalconstants.h index 5934d13..45927d8 100644 --- a/include/globalconstants.h +++ b/include/globalconstants.h @@ -55,7 +55,7 @@ namespace GlobalConstants { LANGUAGE_FR, "fr", "French", "fr|fra|fre|french|fr[_-]FR" }, { LANGUAGE_PL, "pl", "Polish", "pl|pol|polish|pl[_-]PL" }, { LANGUAGE_RU, "ru", "Russian", "ru|rus|russian|ru[_-]RU" }, - { LANGUAGE_CN, "cn", "Chinese", "cn|zh|zho|chi|chinese|zh[_-]CN" }, + { LANGUAGE_CN, "cn", "Chinese", "cn|zh|zho|chi|chinese|zh[_-](CN|Hans)" }, { LANGUAGE_CZ, "cz", "Czech", "cz|cs|ces|cze|czech|cs[_-]CZ" }, { LANGUAGE_ES, "es", "Spanish", "es|spa|spanish|es[_-]ES" }, { LANGUAGE_HU, "hu", "Hungarian", "hu|hun|hungarian|hu[_-]HU" },