2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

finish translation for panel.writePlugin

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

View File

@@ -185,7 +185,7 @@ func (receiver *Panel) Handle(ctx console.Context) error {
slug := arg1
version := arg2
if len(slug) == 0 || len(version) == 0 {
color.Redln("参数错误")
color.Redln(translate.Get("commands.panel.writePlugin.paramFail"))
return nil
}
@@ -197,11 +197,11 @@ func (receiver *Panel) Handle(ctx console.Context) error {
})
if err != nil {
color.Redln("写入插件安装状态失败")
color.Redln(translate.Get("commands.panel.writePlugin.fail"))
return nil
}
color.Greenln("写入插件安装状态成功")
color.Greenln(translate.Get("commands.panel.writePlugin.success"))
case "deletePlugin":
slug := arg1

View File

@@ -73,7 +73,10 @@
"fail": "initialization failed"
},
"writePlugin": {
"description": "write plugin installation status"
"description": "write plugin installation status",
"paramFail": "plugin slug and version are required",
"fail": "failed to write plugin installation status",
"success": "plugin installation status written successfully"
},
"deletePlugin": {
"description": "delete plugin installation status"

View File

@@ -73,7 +73,10 @@
"fail": "初始化失败"
},
"writePlugin": {
"description": "写入插件安装状态"
"description": "写入插件安装状态",
"paramFail": "参数错误",
"fail": "写入插件安装状态失败",
"success": "写入插件安装状态成功"
},
"deletePlugin": {
"description": "移除插件安装状态"