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:
parent
381c156fb9
commit
72fc78048f
4
l10n.py
4
l10n.py
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user