From e1bc708f056a0a110740491579865f44f198c2d9 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 31 Dec 2019 19:06:22 +0100 Subject: [PATCH] aliasing zh-cn as zh for messages (#83) --- lib/translations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/translations.py b/lib/translations.py index 1f07031..0dc381c 100644 --- a/lib/translations.py +++ b/lib/translations.py @@ -28,7 +28,7 @@ PROXY_LANGS = [ "id", "is", "it", "ja", "kk", "lv", "mk", "nb", "nn", "ro", "ru", "sl", "th", "pt-br", "uk", "uz", - "vi", "zh-tw", + "vi", "zh-cn", "zh-tw", ] SUPPORTED_LANGS = FULL_TRANSLATION + PARTIAL_TRANSLATION @@ -751,6 +751,8 @@ CAPTION = { } def get_message(message_name, lang): + if lang == 'zh-cn': + lang = 'zh' if message_name not in MESSAGE: return '' message_dict = MESSAGE[message_name]