From 6edad574708b0be569bffe808d66722f150e3512 Mon Sep 17 00:00:00 2001 From: snowy Date: Wed, 27 Mar 2024 07:58:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=B9=B6=E9=87=8D?= =?UTF-8?q?=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/liteyuki_main/core.py | 2 +- liteyuki/resources/lang/en.lang | 1 + liteyuki/resources/lang/zh-CN.lang | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/liteyuki/liteyuki_main/core.py b/liteyuki/liteyuki_main/core.py index 46fffd4..62a4f47 100644 --- a/liteyuki/liteyuki_main/core.py +++ b/liteyuki/liteyuki_main/core.py @@ -55,7 +55,7 @@ async def _(bot: T_Bot, event: T_MessageEvent): logs = repo.index.diff() reply = "Liteyuki updated!\n" reply += f"```\n{logs}\n```\n" - btn_restart = md.button(ulang.get("liteyuki.restart"), "restart-liteyuki") + btn_restart = md.button(ulang.get("liteyuki.restart_now"), "restart-liteyuki") reply += f"{ulang.get('liteyuki.update_restart', RESTART=btn_restart)}" await send_markdown(reply, bot, event=event, at_sender=False) diff --git a/liteyuki/resources/lang/en.lang b/liteyuki/resources/lang/en.lang index 0555608..ae1ab62 100644 --- a/liteyuki/resources/lang/en.lang +++ b/liteyuki/resources/lang/en.lang @@ -7,6 +7,7 @@ log.error=Error log.success=Success liteyuki.restart=Restart +liteyuki.restart_now=Restart now liteyuki.update_restart=Update completely, You can {RESTART} the server now or later main.current_language=Current config language: {LANG} diff --git a/liteyuki/resources/lang/zh-CN.lang b/liteyuki/resources/lang/zh-CN.lang index ce5cd8b..925bdf3 100644 --- a/liteyuki/resources/lang/zh-CN.lang +++ b/liteyuki/resources/lang/zh-CN.lang @@ -7,6 +7,7 @@ log.error=错误 log.success=成功 liteyuki.restart=重启 +liteyuki.restart_now=立即重启 liteyuki.update_restart=更新完成,你可以立即{RESTART}或稍后手动重启以应用这些更新 main.current_language=当前配置语言为: {LANG}