Commit ad9d62b9 authored by Eric's avatar Eric

[Update] add multiple search tips

parent cc9ddb58
...@@ -18,132 +18,134 @@ msgid "Welcome to use Jumpserver open source fortress system" ...@@ -18,132 +18,134 @@ msgid "Welcome to use Jumpserver open source fortress system"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:49 #: pkg/handler/banner.go:48
msgid "part IP, Hostname, Comment" msgid "part IP, Hostname, Comment"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:49 #: pkg/handler/banner.go:48
msgid "to search login if unique" msgid "to search login if unique"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:50 #: pkg/handler/banner.go:49
msgid "/ + IP, Hostname, Comment" msgid "/ + IP, Hostname, Comment"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:50 #: pkg/handler/banner.go:49
msgid "to search, such as: /192.168" msgid "to search, such as: /192.168"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:51 #: pkg/handler/banner.go:50
msgid "display the host you have permission" msgid "display the host you have permission"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:52 #: pkg/handler/banner.go:51
msgid "display the node that you have permission" msgid "display the node that you have permission"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:53 #: pkg/handler/banner.go:52
msgid "refresh your assets and nodes" msgid "refresh your assets and nodes"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:54 #: pkg/handler/banner.go:53
msgid "print help" msgid "print help"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:55 #: pkg/handler/banner.go:54
msgid "exit" msgid "exit"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:90 #: pkg/handler/banner.go:89
msgid "ID" msgid "ID"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:91 #: pkg/handler/banner.go:90
msgid "hostname" msgid "hostname"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:92 #: pkg/handler/banner.go:91
msgid "IP" msgid "IP"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:93 #: pkg/handler/banner.go:92
msgid "comment" msgid "comment"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:94 #: pkg/handler/banner.go:93
msgid "Page: %d, Count: %d, Total Page: %d, Total Count: %d" msgid "Page: %d, Count: %d, Total Page: %d, Total Count: %d"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:95 #: pkg/handler/banner.go:94
msgid "No Assets" msgid "No Assets"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:96 #: pkg/handler/banner.go:95
msgid "Enter ID number directly login the asset." msgid ""
"Enter ID number directly login the asset, multiple search use // + field, "
"such as: //16"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:97 #: pkg/handler/banner.go:96
msgid "Page up: b\tPage down: Enter|n" msgid "Page up: b\tPage down: n"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:98 #: pkg/handler/banner.go:97
msgid "Node: [ ID.Name(Asset amount) ]" msgid "Node: [ ID.Name(Asset amount) ]"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:99 #: pkg/handler/banner.go:98
msgid "Tips: Enter g+NodeID to display the host under the node, such as g1" msgid "Tips: Enter g+NodeID to display the host under the node, such as g1"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:100 #: pkg/handler/banner.go:99
msgid "Refresh done" msgid "Refresh done"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:101 #: pkg/handler/banner.go:100
msgid "Tips: Enter system user ID and directly login the asset [ %s(%s) ]" msgid "Tips: Enter system user ID and directly login the asset [ %s(%s) ]"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:102 #: pkg/handler/banner.go:101
msgid "Back: B/b" msgid "Back: B/b"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:103 #: pkg/handler/banner.go:102
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:104 #: pkg/handler/banner.go:103
msgid "Username" msgid "Username"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:105 #: pkg/handler/banner.go:104
msgid "all" msgid "all"
msgstr "" msgstr ""
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:106 #: pkg/handler/banner.go:105
msgid "Search: %s" msgid "Search: %s"
msgstr "" msgstr ""
......
...@@ -18,111 +18,113 @@ msgid "Welcome to use Jumpserver open source fortress system" ...@@ -18,111 +18,113 @@ msgid "Welcome to use Jumpserver open source fortress system"
msgstr "欢迎使用Jumpserver开源堡垒机系统" msgstr "欢迎使用Jumpserver开源堡垒机系统"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:49 #: pkg/handler/banner.go:48
msgid "part IP, Hostname, Comment" msgid "part IP, Hostname, Comment"
msgstr "部分IP、主机名、备注" msgstr "部分IP、主机名、备注"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:49 #: pkg/handler/banner.go:48
#, fuzzy #, fuzzy
msgid "to search login if unique" msgid "to search login if unique"
msgstr "搜索登录(如果唯一)" msgstr "搜索登录(如果唯一)"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:50 #: pkg/handler/banner.go:49
msgid "/ + IP, Hostname, Comment" msgid "/ + IP, Hostname, Comment"
msgstr "/ + IP,主机名 or 备注" msgstr "/ + IP,主机名 or 备注"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:50 #: pkg/handler/banner.go:49
#, fuzzy #, fuzzy
msgid "to search, such as: /192.168" msgid "to search, such as: /192.168"
msgstr "搜索,如:/192.168" msgstr "搜索,如:/192.168"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:51 #: pkg/handler/banner.go:50
msgid "display the host you have permission" msgid "display the host you have permission"
msgstr "显示您有权限的主机" msgstr "显示您有权限的主机"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:52 #: pkg/handler/banner.go:51
msgid "display the node that you have permission" msgid "display the node that you have permission"
msgstr "显示您有权限的节点" msgstr "显示您有权限的节点"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:53 #: pkg/handler/banner.go:52
msgid "refresh your assets and nodes" msgid "refresh your assets and nodes"
msgstr "刷新最新的机器和节点信息" msgstr "刷新最新的机器和节点信息"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:54 #: pkg/handler/banner.go:53
msgid "print help" msgid "print help"
msgstr "显示帮助" msgstr "显示帮助"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:55 #: pkg/handler/banner.go:54
msgid "exit" msgid "exit"
msgstr "退出" msgstr "退出"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:90 #: pkg/handler/banner.go:89
msgid "ID" msgid "ID"
msgstr "ID" msgstr "ID"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:91 #: pkg/handler/banner.go:90
msgid "hostname" msgid "hostname"
msgstr "主机名" msgstr "主机名"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:92 #: pkg/handler/banner.go:91
msgid "IP" msgid "IP"
msgstr "IP" msgstr "IP"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:93 #: pkg/handler/banner.go:92
msgid "comment" msgid "comment"
msgstr "备注" msgstr "备注"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:94 #: pkg/handler/banner.go:93
msgid "Page: %d, Count: %d, Total Page: %d, Total Count: %d" msgid "Page: %d, Count: %d, Total Page: %d, Total Count: %d"
msgstr "页码:%d,每页行数:%d,总页数:%d,总数量:%d" msgstr "页码:%d,每页行数:%d,总页数:%d,总数量:%d"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:95 #: pkg/handler/banner.go:94
msgid "No Assets" msgid "No Assets"
msgstr "没有资产" msgstr "没有资产"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:96 #: pkg/handler/banner.go:95
#, fuzzy #, fuzzy
msgid "Enter ID number directly login the asset." msgid ""
msgstr "提示:输入资产ID,登录资产" "Enter ID number directly login the asset, multiple search use // + field, "
"such as: //16"
msgstr "提示:输入资产ID直接登录,二级搜索使用 // + 字段,如://192"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:97 #: pkg/handler/banner.go:96
#, fuzzy #, fuzzy
msgid "Page up: b\tPage down: Enter|n" msgid "Page up: b\tPage down: n"
msgstr "上一页:b 下一页:n" msgstr "上一页:b 下一页:n"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:98 #: pkg/handler/banner.go:97
msgid "Node: [ ID.Name(Asset amount) ]" msgid "Node: [ ID.Name(Asset amount) ]"
msgstr "节点:[ ID.名称(资产数量) ]" msgstr "节点:[ ID.名称(资产数量) ]"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:99 #: pkg/handler/banner.go:98
msgid "Tips: Enter g+NodeID to display the host under the node, such as g1" msgid "Tips: Enter g+NodeID to display the host under the node, such as g1"
msgstr "提示:输入 g+节点ID 显示节点下主机,如: g1" msgstr "提示:输入 g+节点ID 显示节点下主机,如: g1"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:100 #: pkg/handler/banner.go:99
msgid "Refresh done" msgid "Refresh done"
msgstr "刷新完成" msgstr "刷新完成"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:101 #: pkg/handler/banner.go:100
#, fuzzy #, fuzzy
msgid "Tips: Enter system user ID and directly login the asset [ %s(%s) ]" msgid "Tips: Enter system user ID and directly login the asset [ %s(%s) ]"
msgstr "" msgstr ""
...@@ -130,28 +132,28 @@ msgstr "" ...@@ -130,28 +132,28 @@ msgstr ""
"提示:输入系统用户ID,登录资产[ %s(%s) ]\n" "提示:输入系统用户ID,登录资产[ %s(%s) ]\n"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:102 #: pkg/handler/banner.go:101
msgid "Back: B/b" msgid "Back: B/b"
msgstr "返回:B/b" msgstr "返回:B/b"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:103 #: pkg/handler/banner.go:102
msgid "Name" msgid "Name"
msgstr "名称" msgstr "名称"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:104 #: pkg/handler/banner.go:103
#, fuzzy #, fuzzy
msgid "Username" msgid "Username"
msgstr "用户名" msgstr "用户名"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:105 #: pkg/handler/banner.go:104
msgid "all" msgid "all"
msgstr "所有" msgstr "所有"
#. i18n.T #. i18n.T
#: pkg/handler/banner.go:106 #: pkg/handler/banner.go:105
#, fuzzy #, fuzzy
msgid "Search: %s" msgid "Search: %s"
msgstr "搜索: %s" msgstr "搜索: %s"
......
...@@ -92,8 +92,8 @@ func getI18nFromMap(name string) string { ...@@ -92,8 +92,8 @@ func getI18nFromMap(name string) string {
"Comment": i18n.T("comment"), "Comment": i18n.T("comment"),
"AssetTableCaption": i18n.T("Page: %d, Count: %d, Total Page: %d, Total Count: %d"), "AssetTableCaption": i18n.T("Page: %d, Count: %d, Total Page: %d, Total Count: %d"),
"NoAssets": i18n.T("No Assets"), "NoAssets": i18n.T("No Assets"),
"LoginTip": i18n.T("Enter ID number directly login the asset."), "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: Enter|n"), "PageActionTip": i18n.T("Page up: b Page down: n"),
"NodeHeaderTip": i18n.T("Node: [ ID.Name(Asset amount) ]"), "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"), "NodeEndTip": i18n.T("Tips: Enter g+NodeID to display the host under the node, such as g1"),
"RefreshDone": i18n.T("Refresh done"), "RefreshDone": i18n.T("Refresh done"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment