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.
This commit is contained in:
parent
08b84d239c
commit
1af21c3e95
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue