diff --git a/apps/assets/forms/asset.py b/apps/assets/forms/asset.py index c8afa6306..62f9748be 100644 --- a/apps/assets/forms/asset.py +++ b/apps/assets/forms/asset.py @@ -116,6 +116,8 @@ class AssetUpdateForm(OrgModelForm): 'nodes': _("Node"), } help_texts = { + 'hostname': _('Only Numbers, letters, and characters ( {} ) ' + 'are allowed').format(" ".join(['.', '_', '@'])), 'admin_user': _( 'root or other NOPASSWD sudo privilege user existed in asset,' 'If asset is windows or other set any one, more see admin user left menu' diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 785d29df7..753a93327 100644 Binary files a/apps/locale/zh/LC_MESSAGES/django.mo and b/apps/locale/zh/LC_MESSAGES/django.mo differ diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index c9fd58168..fe241d0fc 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Jumpserver 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-23 16:46+0800\n" +"POT-Creation-Date: 2019-09-24 11:11+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: ibuler \n" "Language-Team: Jumpserver team\n" @@ -86,7 +86,7 @@ msgstr "运行参数" #: assets/templates/assets/system_user_list.html:55 audits/models.py:19 #: audits/templates/audits/ftp_log_list.html:44 #: audits/templates/audits/ftp_log_list.html:74 -#: perms/forms/asset_permission.py:79 perms/models/asset_permission.py:78 +#: perms/forms/asset_permission.py:79 perms/models/asset_permission.py:80 #: perms/templates/perms/asset_permission_create_update.html:45 #: perms/templates/perms/asset_permission_list.html:52 #: perms/templates/perms/asset_permission_list.html:121 @@ -452,7 +452,7 @@ msgstr "更新" #: assets/templates/assets/label_list.html:40 #: assets/templates/assets/system_user_detail.html:30 #: assets/templates/assets/system_user_list.html:86 audits/models.py:34 -#: authentication/templates/authentication/_access_key_modal.html:65 +#: authentication/templates/authentication/_access_key_modal.html:64 #: ops/templates/ops/task_list.html:69 #: perms/templates/perms/asset_permission_detail.html:34 #: perms/templates/perms/asset_permission_list.html:179 @@ -510,7 +510,7 @@ msgstr "创建远程应用" #: assets/templates/assets/system_user_list.html:60 audits/models.py:38 #: audits/templates/audits/operate_log_list.html:47 #: audits/templates/audits/operate_log_list.html:73 -#: authentication/templates/authentication/_access_key_modal.html:30 +#: authentication/templates/authentication/_access_key_modal.html:33 #: ops/templates/ops/adhoc_history.html:59 ops/templates/ops/task_adhoc.html:64 #: ops/templates/ops/task_history.html:65 ops/templates/ops/task_list.html:18 #: perms/forms/asset_permission.py:21 @@ -538,7 +538,7 @@ msgstr "动作" #: applications/templates/applications/user_remote_app_list.html:52 #: assets/templates/assets/user_asset_list.html:32 -#: perms/models/asset_permission.py:30 +#: perms/models/asset_permission.py:32 msgid "Connect" msgstr "连接" @@ -587,7 +587,7 @@ msgstr "端口" #: assets/models/user.py:110 assets/templates/assets/asset_detail.html:190 #: assets/templates/assets/asset_detail.html:198 #: assets/templates/assets/system_user_assets.html:83 -#: perms/models/asset_permission.py:79 +#: perms/models/asset_permission.py:81 #: xpack/plugins/change_auth_plan/models.py:74 #: xpack/plugins/gathered_user/models.py:31 #: xpack/plugins/gathered_user/templates/gathered_user/task_list.html:17 @@ -603,7 +603,7 @@ msgstr "节点" msgid "Admin user" msgstr "管理用户" -#: assets/forms/asset.py:61 assets/forms/asset.py:109 assets/forms/asset.py:148 +#: assets/forms/asset.py:61 assets/forms/asset.py:109 assets/forms/asset.py:150 #: assets/templates/assets/asset_create.html:48 #: assets/templates/assets/asset_create.html:50 #: assets/templates/assets/asset_list.html:85 @@ -620,7 +620,7 @@ msgid "Domain" msgstr "网域" #: assets/forms/asset.py:68 assets/forms/asset.py:103 assets/forms/asset.py:116 -#: assets/forms/asset.py:151 assets/models/node.py:403 +#: assets/forms/asset.py:153 assets/models/node.py:403 #: assets/templates/assets/asset_create.html:42 #: perms/forms/asset_permission.py:82 perms/forms/asset_permission.py:89 #: perms/templates/perms/asset_permission_list.html:53 @@ -635,11 +635,11 @@ msgstr "网域" msgid "Node" msgstr "节点" -#: assets/forms/asset.py:71 +#: assets/forms/asset.py:71 assets/forms/asset.py:119 msgid "Only Numbers, letters, and characters ( {} ) are allowed" -msgstr "" +msgstr "只允许包含数字,字母,特殊字符( {} )" -#: assets/forms/asset.py:74 assets/forms/asset.py:120 +#: assets/forms/asset.py:74 assets/forms/asset.py:122 msgid "" "root or other NOPASSWD sudo privilege user existed in asset,If asset is " "windows or other set any one, more see admin user left menu" @@ -647,16 +647,16 @@ msgstr "" "root或其他拥有NOPASSWD: ALL权限的用户, 如果是windows或其它硬件可以随意设置一" "个, 更多信息查看左侧 `管理用户` 菜单" -#: assets/forms/asset.py:77 assets/forms/asset.py:123 +#: assets/forms/asset.py:77 assets/forms/asset.py:125 msgid "Windows 2016 RDP protocol is different, If is window 2016, set it" msgstr "Windows 2016的RDP协议与之前不同,如果是请设置" -#: assets/forms/asset.py:78 assets/forms/asset.py:124 +#: assets/forms/asset.py:78 assets/forms/asset.py:126 msgid "" "If your have some network not connect with each other, you can set domain" msgstr "如果有多个的互相隔离的网络,设置资产属于的网域,使用网域网关跳转登录" -#: assets/forms/asset.py:131 assets/forms/asset.py:135 +#: assets/forms/asset.py:133 assets/forms/asset.py:137 #: assets/forms/domain.py:17 assets/forms/label.py:15 #: perms/templates/perms/asset_permission_asset.html:78 #: xpack/plugins/change_auth_plan/forms.py:55 @@ -1186,7 +1186,7 @@ msgstr "登录模式" #: audits/models.py:20 audits/templates/audits/ftp_log_list.html:52 #: audits/templates/audits/ftp_log_list.html:75 #: perms/forms/asset_permission.py:85 perms/forms/remote_app_permission.py:40 -#: perms/models/asset_permission.py:80 perms/models/remote_app_permission.py:16 +#: perms/models/asset_permission.py:82 perms/models/remote_app_permission.py:16 #: perms/templates/perms/asset_permission_detail.html:140 #: perms/templates/perms/asset_permission_list.html:54 #: perms/templates/perms/asset_permission_list.html:75 @@ -1464,7 +1464,7 @@ msgstr "获取认证信息错误" #: assets/templates/assets/_asset_user_auth_view_modal.html:97 #: assets/templates/assets/_user_asset_detail_modal.html:23 -#: authentication/templates/authentication/_access_key_modal.html:143 +#: authentication/templates/authentication/_access_key_modal.html:141 #: authentication/templates/authentication/_mfa_confirm_modal.html:53 #: settings/templates/settings/_ldap_list_users_modal.html:92 #: templates/_modal.html:22 @@ -1754,7 +1754,7 @@ msgid "Date joined" msgstr "创建日期" #: assets/templates/assets/asset_detail.html:150 authentication/models.py:15 -#: authentication/templates/authentication/_access_key_modal.html:28 +#: authentication/templates/authentication/_access_key_modal.html:31 #: perms/models/base.py:51 #: perms/templates/perms/asset_permission_create_update.html:55 #: perms/templates/perms/asset_permission_detail.html:120 @@ -2197,7 +2197,7 @@ msgid "Success" msgstr "成功" #: audits/models.py:32 -#: authentication/templates/authentication/_access_key_modal.html:38 +#: authentication/templates/authentication/_access_key_modal.html:21 #: xpack/plugins/vault/templates/vault/vault.html:46 msgid "Create" msgstr "创建" @@ -2310,7 +2310,7 @@ msgid "Search" msgstr "搜索" #: audits/templates/audits/login_log_list.html:56 -#: authentication/templates/authentication/_access_key_modal.html:26 +#: authentication/templates/authentication/_access_key_modal.html:29 #: ops/templates/ops/adhoc_detail.html:49 #: ops/templates/ops/adhoc_history_detail.html:49 #: ops/templates/ops/task_detail.html:56 @@ -2329,7 +2329,7 @@ msgid "City" msgstr "城市" #: audits/templates/audits/login_log_list.html:65 -#: authentication/templates/authentication/_access_key_modal.html:29 +#: authentication/templates/authentication/_access_key_modal.html:32 #: ops/templates/ops/task_list.html:16 msgid "Date" msgstr "日期" @@ -2494,23 +2494,23 @@ msgstr "使用api key签名请求头,每个请求的头部是不一样的" msgid "docs" msgstr "文档" -#: authentication/templates/authentication/_access_key_modal.html:27 +#: authentication/templates/authentication/_access_key_modal.html:30 msgid "Secret" msgstr "密文" -#: authentication/templates/authentication/_access_key_modal.html:48 +#: authentication/templates/authentication/_access_key_modal.html:47 #: users/templates/users/_granted_assets.html:75 msgid "Show" msgstr "显示" -#: authentication/templates/authentication/_access_key_modal.html:66 +#: authentication/templates/authentication/_access_key_modal.html:65 #: users/models/user.py:330 users/templates/users/user_profile.html:94 #: users/templates/users/user_profile.html:163 #: users/templates/users/user_profile.html:166 msgid "Disable" msgstr "禁用" -#: authentication/templates/authentication/_access_key_modal.html:67 +#: authentication/templates/authentication/_access_key_modal.html:66 #: users/models/user.py:331 users/templates/users/user_profile.html:92 #: users/templates/users/user_profile.html:170 msgid "Enable" @@ -3135,27 +3135,27 @@ msgstr "用户和用户组至少选一个" msgid "Asset or group at least one required" msgstr "资产和节点至少选一个" -#: perms/models/asset_permission.py:29 settings/forms.py:143 +#: perms/models/asset_permission.py:31 settings/forms.py:143 msgid "All" msgstr "全部" -#: perms/models/asset_permission.py:31 +#: perms/models/asset_permission.py:33 msgid "Upload file" msgstr "上传文件" -#: perms/models/asset_permission.py:32 +#: perms/models/asset_permission.py:34 msgid "Download file" msgstr "下载文件" -#: perms/models/asset_permission.py:33 +#: perms/models/asset_permission.py:35 msgid "Upload download" msgstr "上传下载" -#: perms/models/asset_permission.py:81 +#: perms/models/asset_permission.py:83 msgid "Actions" msgstr "动作" -#: perms/models/asset_permission.py:85 templates/_nav.html:72 +#: perms/models/asset_permission.py:87 templates/_nav.html:72 msgid "Asset permission" msgstr "资产授权" diff --git a/apps/locale/zh/LC_MESSAGES/djangojs.mo b/apps/locale/zh/LC_MESSAGES/djangojs.mo index 2d0fc71a4..4bd390695 100644 Binary files a/apps/locale/zh/LC_MESSAGES/djangojs.mo and b/apps/locale/zh/LC_MESSAGES/djangojs.mo differ diff --git a/apps/locale/zh/LC_MESSAGES/djangojs.po b/apps/locale/zh/LC_MESSAGES/djangojs.po index 549f1cd45..6e75dd502 100644 --- a/apps/locale/zh/LC_MESSAGES/djangojs.po +++ b/apps/locale/zh/LC_MESSAGES/djangojs.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-06-20 16:30+0800\n" +"POT-Creation-Date: 2019-09-24 11:05+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,58 +17,58 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: static/js/jumpserver.js:263 +#: static/js/jumpserver.js:259 msgid "Update is successful!" msgstr "更新成功" -#: static/js/jumpserver.js:265 +#: static/js/jumpserver.js:261 msgid "An unknown error occurred while updating.." msgstr "更新时发生未知错误" -#: static/js/jumpserver.js:329 static/js/jumpserver.js:366 -#: static/js/jumpserver.js:369 +#: static/js/jumpserver.js:324 static/js/jumpserver.js:362 +#: static/js/jumpserver.js:364 msgid "Error" msgstr "错误" -#: static/js/jumpserver.js:329 +#: static/js/jumpserver.js:324 msgid "Being used by the asset, please unbind the asset first." msgstr "正在被资产使用中,请先解除资产绑定" -#: static/js/jumpserver.js:335 static/js/jumpserver.js:376 +#: static/js/jumpserver.js:330 static/js/jumpserver.js:371 msgid "Delete the success" msgstr "删除成功" -#: static/js/jumpserver.js:341 +#: static/js/jumpserver.js:337 msgid "Are you sure about deleting it?" msgstr "你确定删除吗 ?" -#: static/js/jumpserver.js:345 static/js/jumpserver.js:386 +#: static/js/jumpserver.js:341 static/js/jumpserver.js:382 msgid "Cancel" msgstr "取消" -#: static/js/jumpserver.js:347 static/js/jumpserver.js:388 +#: static/js/jumpserver.js:343 static/js/jumpserver.js:384 msgid "Confirm" msgstr "确认" -#: static/js/jumpserver.js:366 +#: static/js/jumpserver.js:362 msgid "" "The organization contains undeleted information. Please try again after " "deleting" msgstr "组织中包含未删除信息,请删除后重试" -#: static/js/jumpserver.js:369 +#: static/js/jumpserver.js:364 msgid "" "Do not perform this operation under this organization. Try again after " "switching to another organization" msgstr "请勿在此组织下执行此操作,切换到其他组织后重试" -#: static/js/jumpserver.js:382 +#: static/js/jumpserver.js:378 msgid "" "Please ensure that the following information in the organization has been " "deleted" msgstr "请确保组织内的以下信息已删除" -#: static/js/jumpserver.js:383 +#: static/js/jumpserver.js:379 msgid "" "User list、User group、Asset list、Domain list、Admin user、System user、" "Labels、Asset permission" @@ -76,80 +76,84 @@ msgstr "" "用户列表、用户组、资产列表、网域列表、管理用户、系统用户、标签管理、资产授权" "规则" -#: static/js/jumpserver.js:422 -msgid "Loading ..." -msgstr "加载中 ..." +#: static/js/jumpserver.js:416 +msgid "Loading" +msgstr "加载中" -#: static/js/jumpserver.js:423 +#: static/js/jumpserver.js:417 msgid "Search" msgstr "搜索" -#: static/js/jumpserver.js:426 +#: static/js/jumpserver.js:420 #, javascript-format msgid "Selected item %d" msgstr "选中 %d 项" -#: static/js/jumpserver.js:430 +#: static/js/jumpserver.js:424 msgid "Per page _MENU_" msgstr "每页 _MENU_" -#: static/js/jumpserver.js:431 +#: static/js/jumpserver.js:425 msgid "" "Displays the results of items _START_ to _END_; A total of _TOTAL_ entries" msgstr "显示第 _START_ 至 _END_ 项结果; 总共 _TOTAL_ 项" -#: static/js/jumpserver.js:434 +#: static/js/jumpserver.js:428 msgid "No match" msgstr "没有匹配项" -#: static/js/jumpserver.js:435 +#: static/js/jumpserver.js:429 msgid "No record" msgstr "没有记录" -#: static/js/jumpserver.js:577 +#: static/js/jumpserver.js:582 msgid "Unknown error occur" -msgstr "" +msgstr "出现未知错误" -#: static/js/jumpserver.js:816 +#: static/js/jumpserver.js:838 msgid "Password minimum length {N} bits" msgstr "密码最小长度 {N} 位" -#: static/js/jumpserver.js:817 +#: static/js/jumpserver.js:839 msgid "Must contain capital letters" msgstr "必须包含大写字母" -#: static/js/jumpserver.js:818 +#: static/js/jumpserver.js:840 msgid "Must contain lowercase letters" msgstr "必须包含小写字母" -#: static/js/jumpserver.js:819 +#: static/js/jumpserver.js:841 msgid "Must contain numeric characters" msgstr "必须包含数字字符" -#: static/js/jumpserver.js:820 +#: static/js/jumpserver.js:842 msgid "Must contain special characters" msgstr "必须包含特殊字符" -#: static/js/jumpserver.js:995 +#: static/js/jumpserver.js:984 msgid "Export failed" msgstr "导出失败" -#: static/js/jumpserver.js:1012 +#: static/js/jumpserver.js:1001 msgid "Import Success" msgstr "导入成功" -#: static/js/jumpserver.js:1017 +#: static/js/jumpserver.js:1006 msgid "Update Success" msgstr "更新成功" -#: static/js/jumpserver.js:1018 +#: static/js/jumpserver.js:1007 msgid "Count" msgstr "数量" -#: static/js/jumpserver.js:1047 +#: static/js/jumpserver.js:1035 msgid "Import failed" msgstr "导入失败" -#: static/js/jumpserver.js:1052 +#: static/js/jumpserver.js:1040 msgid "Update failed" msgstr "更新失败" + +#: static/js/plugins/moment/moment.min.js:6 +msgid "\n" +msgstr ""