1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

added pt_* and zh_* to supported langs

This commit is contained in:
Igor Chubin
2018-07-10 13:02:47 +00:00
parent 252a3250d5
commit 82f1a20714
+3 -1
View File
@@ -279,8 +279,10 @@ def _get_answer_for_question(topic):
print("supposed lang = ", supposed_lang)
if len(topic_words) > 2 or supposed_lang in ['az', 'ru', 'uk', 'de', 'fr', 'es', 'it']:
lang = supposed_lang
if supposed_lang.startswith('zh_'):
if supposed_lang.startswith('zh_') or supposed_lang == 'zh':
lang = 'zh'
elif supposed_lang.startswith('pt_'):
lang = 'pt'
if supposed_lang in ['ja', 'ko']:
lang = supposed_lang