Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorWu Xiaotian <yetist@gmail.com>2023-07-26 15:19:45 +0800
committerGitHub <noreply@github.com>2023-07-26 09:19:45 +0200
commit1af21c3e9582f3bf88f03ae2d45761b8b4ba3b64 (patch)
treebcd5d9c90bbe727626a07d3f1837b7d16ef4c448 /archinstall
parent08b84d239ca8196e492a8ffb48f0e9e5ff8718a7 (diff)
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.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/translationhandler.py2
1 files changed, 1 insertions, 1 deletions
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