From 1af21c3e9582f3bf88f03ae2d45761b8b4ba3b64 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 26 Jul 2023 15:19:45 +0800 Subject: Let the Chinese translation show in the menu item (#1944) Even though the translation files exist, we still can't find Simplified or Traditional Chinese translations from the language menu, this patch fixes that. --- archinstall/lib/translationhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/translationhandler.py b/archinstall/lib/translationhandler.py index 5f0f0695..a2e44065 100644 --- a/archinstall/lib/translationhandler.py +++ b/archinstall/lib/translationhandler.py @@ -168,7 +168,7 @@ class TranslationHandler: translation_files = [] for filename in filenames: - if len(filename) == 2 or filename == 'pt_BR': + if len(filename) == 2 or filename in ['pt_BR', 'zh-CN', 'zh-TW']: translation_files.append(filename) return translation_files -- cgit v1.2.3-70-g09d2