1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

l10n: Change zh-CN to zh-Hans in preferred_languages().

This commit is contained in:
Athanasius 2021-12-11 10:59:43 +00:00
parent 381c156fb9
commit 72fc78048f
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -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