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:
parent
c3d119fd2e
commit
bb4ac59750
2 changed files with 5 additions and 1 deletions
|
@ -214,7 +214,7 @@ menu_csv = "📄 .csv"
|
||||||
menu_edit_admins = "🏵 编辑经理"
|
menu_edit_admins = "🏵 编辑经理"
|
||||||
|
|
||||||
# Menu: language
|
# Menu: language
|
||||||
menu_language = "🇨🇳 语言"
|
menu_language = "🌐语言"
|
||||||
|
|
||||||
# Emoji: unprocessed order
|
# Emoji: unprocessed order
|
||||||
emoji_not_processed = "*️⃣"
|
emoji_not_processed = "*️⃣"
|
||||||
|
|
|
@ -1366,6 +1366,10 @@ class Worker(threading.Thread):
|
||||||
lang = "🇺🇦 Українська"
|
lang = "🇺🇦 Українська"
|
||||||
keyboard.append([telegram.KeyboardButton(lang)])
|
keyboard.append([telegram.KeyboardButton(lang)])
|
||||||
options[lang] = "uk"
|
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)
|
# Send the previously created keyboard to the user (ensuring it can be clicked only 1 time)
|
||||||
self.bot.send_message(self.chat.id,
|
self.bot.send_message(self.chat.id,
|
||||||
self.loc.get("conversation_language_select"),
|
self.loc.get("conversation_language_select"),
|
||||||
|
|
Loading…
Reference in a new issue