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

This commit is contained in:
Athanasius committed 2021-12-11 10:59:43 +00:00
1 parent 381c156fb9
commit 72fc78048f
1 file changed
+4
+4
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