2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 01:48:43 +08:00

finish translation for panel.writeMysqlPassword

This commit is contained in:
kkumar-gcc
2024-04-26 18:19:55 +05:30
parent 48ed174dc6
commit 7f46dea052
3 changed files with 11 additions and 5 deletions

View File

@@ -221,7 +221,7 @@ func (receiver *Panel) Handle(ctx console.Context) error {
case "writeMysqlPassword":
password := arg1
if len(password) == 0 {
color.Redln("参数错误")
color.Redln(translate.Get("commands.panel.writeMysqlPassword.paramFail"))
return nil
}
@@ -233,11 +233,11 @@ func (receiver *Panel) Handle(ctx console.Context) error {
})
if err != nil {
color.Redln("写入MySQL root密码失败")
color.Redln(translate.Get("commands.panel.writeMysqlPassword.fail"))
return nil
}
color.Greenln("写入MySQL root密码成功")
color.Greenln(translate.Get("commands.panel.writeMysqlPassword.success"))
case "cleanTask":
_, err := facades.Orm().Query().Model(&models.Task{}).Where("status", models.TaskStatusRunning).OrWhere("status", models.TaskStatusWaiting).Update("status", models.TaskStatusFailed)