mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
l10n: Make the zh-CN -> zh-Hans comment a HACK
This commit is contained in:
parent
72fc78048f
commit
fc3a7b32a3
5
l10n.py
5
l10n.py
@ -354,8 +354,9 @@ class _Locale:
|
|||||||
):
|
):
|
||||||
languages = wszarray_to_list(buf)
|
languages = wszarray_to_list(buf)
|
||||||
|
|
||||||
# OneSky calls "Chinese Simplified" "zh-Hans" in the name of the file,
|
# HACK: <n/a> | 2021-12-11: OneSky calls "Chinese Simplified" "zh-Hans"
|
||||||
# but that will be zh-CN in terms of locale. So map zh-CN -> 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]
|
languages = ['zh-Hans' if lang == 'zh-CN' else lang for lang in languages]
|
||||||
|
|
||||||
return languages
|
return languages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user