From fc3a7b32a3d6e1d9327b5d9747973df383c1b480 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 11 Dec 2021 14:15:30 +0000 Subject: [PATCH] l10n: Make the zh-CN -> zh-Hans comment a HACK --- l10n.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/l10n.py b/l10n.py index 2771f46a0..b77c07de2 100755 --- a/l10n.py +++ b/l10n.py @@ -354,8 +354,9 @@ def wszarray_to_list(array): ): 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 + # HACK: | 2021-12-11: 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