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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -79,7 +79,10 @@
|
||||
"success": "写入插件安装状态成功"
|
||||
},
|
||||
"deletePlugin": {
|
||||
"description": "移除插件安装状态"
|
||||
"description": "移除插件安装状态",
|
||||
"paramFail": "参数错误",
|
||||
"fail": "移除插件安装状态失败",
|
||||
"success": "移除插件安装状态成功"
|
||||
},
|
||||
"writeMysqlPassword": {
|
||||
"description": "写入MySQL root密码"
|
||||
|
||||
Reference in New Issue
Block a user