From bb4ac5975058261fdfe3152e119c979d8dbaea52 Mon Sep 17 00:00:00 2001 From: zhihuiyuze Date: Sat, 22 Aug 2020 20:40:27 +0800 Subject: [PATCH] Fix Chinese menu --- strings/zh_cn.py | 2 +- worker.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/strings/zh_cn.py b/strings/zh_cn.py index 66b5e45..90d1da7 100644 --- a/strings/zh_cn.py +++ b/strings/zh_cn.py @@ -214,7 +214,7 @@ menu_csv = "๐Ÿ“„ .csv" menu_edit_admins = "๐Ÿต ็ผ–่พ‘็ป็†" # Menu: language -menu_language = "๐Ÿ‡จ๐Ÿ‡ณ ่ฏญ่จ€" +menu_language = "๐ŸŒ่ฏญ่จ€" # Emoji: unprocessed order emoji_not_processed = "*๏ธโƒฃ" diff --git a/worker.py b/worker.py index 6120b5b..8e92645 100644 --- a/worker.py +++ b/worker.py @@ -1366,6 +1366,10 @@ class Worker(threading.Thread): lang = "๐Ÿ‡บ๐Ÿ‡ฆ ะฃะบั€ะฐั—ะฝััŒะบะฐ" keyboard.append([telegram.KeyboardButton(lang)]) options[lang] = "uk" + if "zh_cn" in configloader.config["Language"]["enabled_languages"]: + lang = "๐Ÿ‡จ๐Ÿ‡ณ" + keyboard.append([telegram.KeyboardButton(lang)]) + options[lang] = "zh_cn" # Send the previously created keyboard to the user (ensuring it can be clicked only 1 time) self.bot.send_message(self.chat.id, self.loc.get("conversation_language_select"),