提交 a3ab3ab0 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

upgrade

上级 6fcc6c9a
Version = 1.6
Version = 1.7
Language = zh
VERSION=1.6
PROJECT=zendata
VERSION=1.7
PROJECT=zd
QINIU_DIR=/Users/aaron/work/zentao/qiniu/
QINIU_DIST_DIR=${QINIU_DIR}${PROJECT}/${VERSION}/
PACKAGE=${PROJECT}-${VERSION}
......
......@@ -166,6 +166,10 @@
"translation": "Fail to exec command '%s', error is '%s'."
},
{
"id": "no_new_ver",
"translation": "Current %s is already the newest version."
},
{
"id": "find_new_ver",
"translation": "Find new version %s"
......
......@@ -157,6 +157,10 @@
"translation": "执行命令'%s'失败,错误消息为'%s'。"
},
{
"id": "no_new_ver",
"translation": "当前版本%s已经为最新。"
},
{
"id": "find_new_ver",
"translation": "发现新版本%s。"
......
......@@ -42,6 +42,8 @@ func (s *UpgradeService) CheckUpgrade() {
if pass && err == nil {
s.RestartVersion(versionStr)
}
} else {
logUtils.PrintToWithColor(i118Utils.I118Prt.Sprintf("no_new_ver", content), color.FgCyan)
}
}
......
......@@ -7,7 +7,7 @@ import (
)
const (
AppName = "zendata"
AppName = "zd"
)
var (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册