From af038cb789fb348e77fc58a3680f322b403b2961 Mon Sep 17 00:00:00 2001 From: Snowykami <79104275+snowykami@users.noreply.github.com> Date: Tue, 23 Apr 2024 07:42:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/liteyuki_user/profile_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liteyuki/plugins/liteyuki_user/profile_manager.py b/liteyuki/plugins/liteyuki_user/profile_manager.py index 0ce2ed9..c10e587 100644 --- a/liteyuki/plugins/liteyuki_user/profile_manager.py +++ b/liteyuki/plugins/liteyuki_user/profile_manager.py @@ -117,12 +117,12 @@ def get_profile_menu(key: str, ulang: Language) -> Optional[str]: reply = f"**{setting_name} {ulang.get('user.profile.settings')}**\n***\n" if key == "lang": for lang_code, lang_name in get_all_lang().items(): - btn_set = md.btn_cmd(ulang.get("user.profile.set"), f"profile set {key} {lang_code}") - reply += f"\n{btn_set} | **{lang_name}** - {lang_code}\n***\n" + btn_set_lang = md.btn_cmd(f"{lang_namd}({lang_code})", f"profile set {key} {lang_code}") + reply += f"\n{btn_set_lang}\n***\n" elif key == "timezone": for tz in representative_timezones_list: btn_set_tz = md.btn_cmd(tz, f"profile set {key} {tz}") - reply += f"{btn_set_tz}\n" + reply += f"{btn_set_tz}\n***\n" return reply