2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 06:57:19 +08:00

finish translation for panel.deletePlugin

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

View File

@@ -206,17 +206,17 @@ func (receiver *Panel) Handle(ctx console.Context) error {
case "deletePlugin":
slug := arg1
if len(slug) == 0 {
color.Redln("参数错误")
color.Redln(translate.Get("commands.panel.deletePlugin.paramFail"))
return nil
}
_, err := facades.Orm().Query().Where("slug", slug).Delete(&models.Plugin{})
if err != nil {
color.Redln("移除插件安装状态失败")
color.Redln(translate.Get("commands.panel.deletePlugin.fail"))
return nil
}
color.Greenln("移除插件安装状态成功")
color.Greenln(translate.Get("commands.panel.deletePlugin.success"))
case "writeMysqlPassword":
password := arg1

View File

@@ -79,7 +79,10 @@
"success": "plugin installation status written successfully"
},
"deletePlugin": {
"description": "delete plugin installation status"
"description": "delete plugin installation status",
"paramFail": "plugin slug is required",
"fail": "failed to remove plugin installation status",
"success": "plugin installation status removed successfully"
},
"writeMysqlPassword": {
"description": "write MySQL root password"

View File

@@ -79,7 +79,10 @@
"success": "写入插件安装状态成功"
},
"deletePlugin": {
"description": "移除插件安装状态"
"description": "移除插件安装状态",
"paramFail": "参数错误",
"fail": "移除插件安装状态失败",
"success": "移除插件安装状态成功"
},
"writeMysqlPassword": {
"description": "写入MySQL root密码"