1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +00:00

Fix Chinese menu

This commit is contained in:
zhihuiyuze 2020-08-22 20:40:27 +08:00
parent c3d119fd2e
commit bb4ac59750
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: F81C854AA3BF45F7
2 changed files with 5 additions and 1 deletions

View file

@ -214,7 +214,7 @@ menu_csv = "📄 .csv"
menu_edit_admins = "🏵 编辑经理"
# Menu: language
menu_language = "🇨🇳 语言"
menu_language = "🌐语言"
# Emoji: unprocessed order
emoji_not_processed = "*️⃣"

View file

@ -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"),