Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
ad9d62b9
Commit
ad9d62b9
authored
Nov 15, 2019
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] add multiple search tips
parent
cc9ddb58
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
60 deletions
+64
-60
koko.po
cmd/locale/en_US/LC_MESSAGES/koko.po
+30
-28
koko.po
cmd/locale/zh_CN/LC_MESSAGES/koko.po
+32
-30
banner.go
pkg/handler/banner.go
+2
-2
No files found.
cmd/locale/en_US/LC_MESSAGES/koko.po
View file @
ad9d62b9
...
...
@@ -18,132 +18,134 @@ msgid "Welcome to use Jumpserver open source fortress system"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:4
9
#: pkg/handler/banner.go:4
8
msgid "part IP, Hostname, Comment"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:4
9
#: pkg/handler/banner.go:4
8
msgid "to search login if unique"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:
50
#: pkg/handler/banner.go:
49
msgid "/ + IP, Hostname, Comment"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:
50
#: pkg/handler/banner.go:
49
msgid "to search, such as: /192.168"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:5
1
#: pkg/handler/banner.go:5
0
msgid "display the host you have permission"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:5
2
#: pkg/handler/banner.go:5
1
msgid "display the node that you have permission"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:5
3
#: pkg/handler/banner.go:5
2
msgid "refresh your assets and nodes"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:5
4
#: pkg/handler/banner.go:5
3
msgid "print help"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:5
5
#: pkg/handler/banner.go:5
4
msgid "exit"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:
90
#: pkg/handler/banner.go:
89
msgid "ID"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
1
#: pkg/handler/banner.go:9
0
msgid "hostname"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
2
#: pkg/handler/banner.go:9
1
msgid "IP"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
3
#: pkg/handler/banner.go:9
2
msgid "comment"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
4
#: pkg/handler/banner.go:9
3
msgid "Page: %d, Count: %d, Total Page: %d, Total Count: %d"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
5
#: pkg/handler/banner.go:9
4
msgid "No Assets"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:96
msgid "Enter ID number directly login the asset."
#: pkg/handler/banner.go:95
msgid ""
"Enter ID number directly login the asset, multiple search use // + field, "
"such as: //16"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
7
msgid "Page up: b\tPage down:
Enter|
n"
#: pkg/handler/banner.go:9
6
msgid "Page up: b\tPage down: n"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
8
#: pkg/handler/banner.go:9
7
msgid "Node: [ ID.Name(Asset amount) ]"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:9
9
#: pkg/handler/banner.go:9
8
msgid "Tips: Enter g+NodeID to display the host under the node, such as g1"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:
100
#: pkg/handler/banner.go:
99
msgid "Refresh done"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:10
1
#: pkg/handler/banner.go:10
0
msgid "Tips: Enter system user ID and directly login the asset [ %s(%s) ]"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:10
2
#: pkg/handler/banner.go:10
1
msgid "Back: B/b"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:10
3
#: pkg/handler/banner.go:10
2
msgid "Name"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:10
4
#: pkg/handler/banner.go:10
3
msgid "Username"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:10
5
#: pkg/handler/banner.go:10
4
msgid "all"
msgstr ""
#. i18n.T
#: pkg/handler/banner.go:10
6
#: pkg/handler/banner.go:10
5
msgid "Search: %s"
msgstr ""
...
...
cmd/locale/zh_CN/LC_MESSAGES/koko.po
View file @
ad9d62b9
...
...
@@ -18,111 +18,113 @@ msgid "Welcome to use Jumpserver open source fortress system"
msgstr "欢迎使用Jumpserver开源堡垒机系统"
#. i18n.T
#: pkg/handler/banner.go:4
9
#: pkg/handler/banner.go:4
8
msgid "part IP, Hostname, Comment"
msgstr "部分IP、主机名、备注"
#. i18n.T
#: pkg/handler/banner.go:4
9
#: pkg/handler/banner.go:4
8
#, fuzzy
msgid "to search login if unique"
msgstr "搜索登录(如果唯一)"
#. i18n.T
#: pkg/handler/banner.go:
50
#: pkg/handler/banner.go:
49
msgid "/ + IP, Hostname, Comment"
msgstr "/ + IP,主机名 or 备注"
#. i18n.T
#: pkg/handler/banner.go:
50
#: pkg/handler/banner.go:
49
#, fuzzy
msgid "to search, such as: /192.168"
msgstr "搜索,如:/192.168"
#. i18n.T
#: pkg/handler/banner.go:5
1
#: pkg/handler/banner.go:5
0
msgid "display the host you have permission"
msgstr "显示您有权限的主机"
#. i18n.T
#: pkg/handler/banner.go:5
2
#: pkg/handler/banner.go:5
1
msgid "display the node that you have permission"
msgstr "显示您有权限的节点"
#. i18n.T
#: pkg/handler/banner.go:5
3
#: pkg/handler/banner.go:5
2
msgid "refresh your assets and nodes"
msgstr "刷新最新的机器和节点信息"
#. i18n.T
#: pkg/handler/banner.go:5
4
#: pkg/handler/banner.go:5
3
msgid "print help"
msgstr "显示帮助"
#. i18n.T
#: pkg/handler/banner.go:5
5
#: pkg/handler/banner.go:5
4
msgid "exit"
msgstr "退出"
#. i18n.T
#: pkg/handler/banner.go:
90
#: pkg/handler/banner.go:
89
msgid "ID"
msgstr "ID"
#. i18n.T
#: pkg/handler/banner.go:9
1
#: pkg/handler/banner.go:9
0
msgid "hostname"
msgstr "主机名"
#. i18n.T
#: pkg/handler/banner.go:9
2
#: pkg/handler/banner.go:9
1
msgid "IP"
msgstr "IP"
#. i18n.T
#: pkg/handler/banner.go:9
3
#: pkg/handler/banner.go:9
2
msgid "comment"
msgstr "备注"
#. i18n.T
#: pkg/handler/banner.go:9
4
#: pkg/handler/banner.go:9
3
msgid "Page: %d, Count: %d, Total Page: %d, Total Count: %d"
msgstr "页码:%d,每页行数:%d,总页数:%d,总数量:%d"
#. i18n.T
#: pkg/handler/banner.go:9
5
#: pkg/handler/banner.go:9
4
msgid "No Assets"
msgstr "没有资产"
#. i18n.T
#: pkg/handler/banner.go:9
6
#: pkg/handler/banner.go:9
5
#, fuzzy
msgid "Enter ID number directly login the asset."
msgstr "提示:输入资产ID,登录资产"
msgid ""
"Enter ID number directly login the asset, multiple search use // + field, "
"such as: //16"
msgstr "提示:输入资产ID直接登录,二级搜索使用 // + 字段,如://192"
#. i18n.T
#: pkg/handler/banner.go:9
7
#: pkg/handler/banner.go:9
6
#, fuzzy
msgid "Page up: b\tPage down:
Enter|
n"
msgstr "上一页:b
下一页:n"
msgid "Page up: b\tPage down: n"
msgstr "上一页:b 下一页:n"
#. i18n.T
#: pkg/handler/banner.go:9
8
#: pkg/handler/banner.go:9
7
msgid "Node: [ ID.Name(Asset amount) ]"
msgstr "节点:[ ID.名称(资产数量) ]"
#. i18n.T
#: pkg/handler/banner.go:9
9
#: pkg/handler/banner.go:9
8
msgid "Tips: Enter g+NodeID to display the host under the node, such as g1"
msgstr "提示:输入 g+节点ID 显示节点下主机,如: g1"
#. i18n.T
#: pkg/handler/banner.go:
100
#: pkg/handler/banner.go:
99
msgid "Refresh done"
msgstr "刷新完成"
#. i18n.T
#: pkg/handler/banner.go:10
1
#: pkg/handler/banner.go:10
0
#, fuzzy
msgid "Tips: Enter system user ID and directly login the asset [ %s(%s) ]"
msgstr ""
...
...
@@ -130,28 +132,28 @@ msgstr ""
"提示:输入系统用户ID,登录资产[ %s(%s) ]\n"
#. i18n.T
#: pkg/handler/banner.go:10
2
#: pkg/handler/banner.go:10
1
msgid "Back: B/b"
msgstr "返回:B/b"
#. i18n.T
#: pkg/handler/banner.go:10
3
#: pkg/handler/banner.go:10
2
msgid "Name"
msgstr "名称"
#. i18n.T
#: pkg/handler/banner.go:10
4
#: pkg/handler/banner.go:10
3
#, fuzzy
msgid "Username"
msgstr "用户名"
#. i18n.T
#: pkg/handler/banner.go:10
5
#: pkg/handler/banner.go:10
4
msgid "all"
msgstr "所有"
#. i18n.T
#: pkg/handler/banner.go:10
6
#: pkg/handler/banner.go:10
5
#, fuzzy
msgid "Search: %s"
msgstr "搜索: %s"
...
...
pkg/handler/banner.go
View file @
ad9d62b9
...
...
@@ -92,8 +92,8 @@ func getI18nFromMap(name string) string {
"Comment"
:
i18n
.
T
(
"comment"
),
"AssetTableCaption"
:
i18n
.
T
(
"Page: %d, Count: %d, Total Page: %d, Total Count: %d"
),
"NoAssets"
:
i18n
.
T
(
"No Assets"
),
"LoginTip"
:
i18n
.
T
(
"Enter ID number directly login the asset
.
"
),
"PageActionTip"
:
i18n
.
T
(
"Page up: b Page down:
Enter|
n"
),
"LoginTip"
:
i18n
.
T
(
"Enter ID number directly login the asset
, multiple search use // + field, such as: //16
"
),
"PageActionTip"
:
i18n
.
T
(
"Page up: b Page down: n"
),
"NodeHeaderTip"
:
i18n
.
T
(
"Node: [ ID.Name(Asset amount) ]"
),
"NodeEndTip"
:
i18n
.
T
(
"Tips: Enter g+NodeID to display the host under the node, such as g1"
),
"RefreshDone"
:
i18n
.
T
(
"Refresh done"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment