Skip to content

Commit

Permalink
update install comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Feb 7, 2018
1 parent 7dd0ce9 commit 5bd55ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 6 additions & 0 deletions assets/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ en-US:
batch:
success: "Deploy task created!"
failed: "Failed to create deploy task!"
install:
step1: "Installing Docker Engine"
step2: "Loading K8S images"
step3: "Installing K8S components"
step4: "Joining K8S cluster"
step5: "Done"
6 changes: 6 additions & 0 deletions assets/locales/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ zh-CN:
batch:
success: "成功创建批量部署任务!"
failed: "请求发生错误,无法创建批量部署任务!"
install:
step1: "开始安装Docker Engine"
step2: "开始载入K8S镜像"
step3: "开始安装K8S组件"
step4: "加入节点到集群中"
step5: "部署完成"
10 changes: 5 additions & 5 deletions controllers/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ func (router *MainRouter) NodeProgressHandler(c *gin.Context) {

switch step {
case "1":
comment = "(1/5) Installing Docker Engine"
comment = "(1/5) " + Translate("install.step1")
case "2":
comment = "(2/5) Loading K8S images"
comment = "(2/5) " + Translate("install.step2")
case "3":
comment = "(3/5) Installing K8S components"
comment = "(3/5) " + Translate("install.step3")
case "4":
comment = "(4/5) Joining K8S cluster"
comment = "(4/5) " + Translate("install.step4")
case "5":
comment = "Done"
comment = Translate("install.step5")
status = 2
}

Expand Down

0 comments on commit 5bd55ae

Please sign in to comment.