mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-27 01:16:06 +03:00
l10n: Change zh-CN to zh-Hans in preferred_languages().
This commit is contained in:
1 file changed
+4
@@ -354,6 +354,10 @@ class _Locale:
|
||||
):
|
||||
languages = wszarray_to_list(buf)
|
||||
|
||||
# OneSky calls "Chinese Simplified" "zh-Hans" in the name of the file,
|
||||
# but that will be zh-CN in terms of locale. So map zh-CN -> zh-Hans
|
||||
languages = ['zh-Hans' if lang == 'zh-CN' else lang for lang in languages]
|
||||
|
||||
return languages
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user