Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
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
jumpserver
Commits
28cdfca1
Commit
28cdfca1
authored
6 years ago
by
BaiJiangJie
Committed by
老广
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 优化 License (#2420)
* [Update] License - 1.添加标签过滤器 * [Update] License - 2.添加翻译信息
parent
202aba04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
35 deletions
+60
-35
common_tags.py
apps/common/templatetags/common_tags.py
+8
-0
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+52
-35
No files found.
apps/common/templatetags/common_tags.py
View file @
28cdfca1
...
...
@@ -97,6 +97,14 @@ def is_bool_field(field):
return
False
@register.filter
def
is_image_field
(
field
):
if
isinstance
(
field
,
forms
.
ImageField
):
return
True
else
:
return
False
@register.filter
def
to_dict
(
data
):
return
dict
(
data
)
...
...
This diff is collapsed.
Click to expand it.
apps/locale/zh/LC_MESSAGES/django.mo
View file @
28cdfca1
No preview for this file type
This diff is collapsed.
Click to expand it.
apps/locale/zh/LC_MESSAGES/django.po
View file @
28cdfca1
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-02-21 1
5:5
3+0800\n"
"POT-Creation-Date: 2019-02-21 1
8:2
3+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
...
@@ -464,6 +464,7 @@ msgid "Reachable"
msgstr "可连接"
#: assets/models/asset.py:119 assets/models/base.py:36
#: xpack/plugins/license/models.py:75
msgid "Unknown"
msgstr "未知"
...
...
@@ -579,7 +580,7 @@ msgstr "优先级可选范围为1-100,1最低优先级,100最高优先级"
#: assets/models/cmd_filter.py:50
#: assets/templates/assets/cmd_filter_rule_list.html:59
#: xpack/plugins/license/models.py:2
7
#: xpack/plugins/license/models.py:2
9
msgid "Content"
msgstr "内容"
...
...
@@ -923,7 +924,7 @@ msgstr "其它"
#: users/templates/users/user_pubkey_update.html:76
#: xpack/plugins/cloud/templates/cloud/account_create_update.html:33
#: xpack/plugins/cloud/templates/cloud/sync_instance_task_create.html:35
#: xpack/plugins/interface/templates/interface/interface.html:
50
#: xpack/plugins/interface/templates/interface/interface.html:
88
msgid "Reset"
msgstr "重置"
...
...
@@ -956,7 +957,7 @@ msgstr "重置"
#: users/templates/users/user_password_update.html:72
#: users/templates/users/user_profile_update.html:64
#: users/templates/users/user_pubkey_update.html:77
#: xpack/plugins/interface/templates/interface/interface.html:
51
#: xpack/plugins/interface/templates/interface/interface.html:
89
msgid "Submit"
msgstr "提交"
...
...
@@ -1173,7 +1174,7 @@ msgstr "创建日期"
#: terminal/templates/terminal/session_detail.html:81
#: users/templates/users/user_detail.html:138
#: users/templates/users/user_profile.html:146
#: xpack/plugins/license/templates/license/license_detail.html:
81
#: xpack/plugins/license/templates/license/license_detail.html:
94
msgid "Quick modify"
msgstr "快速修改"
...
...
@@ -1221,7 +1222,7 @@ msgstr "创建资产"
#: assets/templates/assets/asset_list.html:73
#: users/templates/users/user_list.html:7
#: xpack/plugins/license/templates/license/license_detail.html:
89
#: xpack/plugins/license/templates/license/license_detail.html:
102
msgid "Import"
msgstr "导入"
...
...
@@ -1688,7 +1689,7 @@ msgstr "文件名"
#: audits/models.py:22 audits/templates/audits/ftp_log_list.html:76
#: ops/templates/ops/command_execution_list.html:64
#: ops/templates/ops/task_list.html:39 users/models/authentication.py:73
#: users/templates/users/user_detail.html:458 xpack/plugins/cloud/api.py:6
1
#: users/templates/users/user_detail.html:458 xpack/plugins/cloud/api.py:6
2
msgid "Success"
msgstr "成功"
...
...
@@ -2721,6 +2722,7 @@ msgid "Validity period"
msgstr "有效期"
#: perms/templates/perms/asset_permission_detail.html:66
#: xpack/plugins/license/templates/license/license_detail.html:68
msgid "User count"
msgstr "用户数量"
...
...
@@ -2729,6 +2731,7 @@ msgid "User group count"
msgstr "用户组列表"
#: perms/templates/perms/asset_permission_detail.html:74
#: xpack/plugins/license/templates/license/license_detail.html:64
msgid "Asset count"
msgstr "资产数量"
...
...
@@ -2986,6 +2989,7 @@ msgstr "验证码"
#: users/templates/users/login.html:27 users/templates/users/login_otp.html:27
#: users/templates/users/new_login.html:56
#: users/templates/users/reset_password.html:25
#: xpack/plugins/interface/models.py:36
msgid "Welcome to the Jumpserver open source fortress"
msgstr "欢迎使用Jumpserver开源堡垒机"
...
...
@@ -4490,7 +4494,7 @@ msgstr "MFA 解绑成功"
msgid "MFA disable success, return login page"
msgstr "MFA 解绑成功,返回登录页面"
#: xpack/plugins/cloud/api.py:6
0
xpack/plugins/cloud/providers/base.py:84
#: xpack/plugins/cloud/api.py:6
1
xpack/plugins/cloud/providers/base.py:84
msgid "Account unavailable"
msgstr "账户无效"
...
...
@@ -4701,49 +4705,49 @@ msgstr "同步实例任务列表"
msgid "Create sync Instance task"
msgstr "创建同步实例任务"
#: xpack/plugins/interface/forms.py:1
1
xpack/plugins/interface/models.py:15
#: xpack/plugins/interface/forms.py:1
6
xpack/plugins/interface/models.py:15
msgid "Title of login page"
msgstr "登录页面标题"
#: xpack/plugins/interface/forms.py:1
3
#: xpack/plugins/interface/forms.py:1
8
msgid ""
"Tips: This will be displayed on the enterprise user login page. (eg: Welcome "
"to the Jumpserver open source fortress)"
msgstr "提示:将会显示在企业版用户登录页面(eg: 欢迎使用Jumpserver开源堡垒机)"
#: xpack/plugins/interface/forms.py:
19
xpack/plugins/interface/models.py:19
#: xpack/plugins/interface/forms.py:
24
xpack/plugins/interface/models.py:19
msgid "Image of login page"
msgstr "登录页面图片"
#: xpack/plugins/interface/forms.py:2
1
#: xpack/plugins/interface/forms.py:2
6
msgid ""
"Tips: This will be displayed on the enterprise user login page. (suggest "
"image size: 635px*472px)"
msgstr "提示:将会显示在企业版用户登录页面(建议图片大小为: 635px*472px)"
#: xpack/plugins/interface/forms.py:
27
xpack/plugins/interface/models.py:23
#: xpack/plugins/interface/forms.py:
32
xpack/plugins/interface/models.py:23
msgid "Website icon"
msgstr "网站图标"
#: xpack/plugins/interface/forms.py:
29
#: xpack/plugins/interface/forms.py:
34
msgid "Tips: website icon. (suggest image size: 16px*16px)"
msgstr "提示:网站图标(建议图片大小为: 16px*16px)"
#: xpack/plugins/interface/forms.py:3
4
xpack/plugins/interface/models.py:27
#: xpack/plugins/interface/forms.py:3
9
xpack/plugins/interface/models.py:27
msgid "Logo of management page"
msgstr "管理页面logo"
#: xpack/plugins/interface/forms.py:
36
#: xpack/plugins/interface/forms.py:
41
msgid ""
"Tips: This will appear at the top left of the administration page. (suggest "
"image size: 185px*55px)"
msgstr "提示:将会显示在管理页面左上方(建议图片大小为: 185px*55px)"
#: xpack/plugins/interface/forms.py:4
2
xpack/plugins/interface/models.py:31
#: xpack/plugins/interface/forms.py:4
7
xpack/plugins/interface/models.py:31
msgid "Logo of logout page"
msgstr "退出页面logo"
#: xpack/plugins/interface/forms.py:4
4
#: xpack/plugins/interface/forms.py:4
9
msgid ""
"Tips: This will be displayed on the enterprise user logout page. (suggest "
"image size: 82px*82px)"
...
...
@@ -4762,12 +4766,22 @@ msgstr "界面设置"
msgid "Interface"
msgstr "界面"
#: xpack/plugins/license/meta.py:11 xpack/plugins/license/views.py:27
#: xpack/plugins/license/meta.py:11
#: xpack/plugins/license/templates/license/license_detail.html:51
#: xpack/plugins/license/views.py:31
msgid "License"
msgstr "许可证"
#: xpack/plugins/license/models.py:71
msgid "Standard edition"
msgstr ""
#: xpack/plugins/license/models.py:73
msgid "Enterprise edition"
msgstr "企业版"
#: xpack/plugins/license/templates/license/_license_import_modal.html:4
#: xpack/plugins/license/templates/license/license_detail.html:
87
#: xpack/plugins/license/templates/license/license_detail.html:
100
msgid "Import license"
msgstr "导入许可证"
...
...
@@ -4792,39 +4806,42 @@ msgid " expired."
msgstr " 过期。"
#: xpack/plugins/license/templates/license/license_detail.html:37
#: xpack/plugins/license/views.py:
28
#: xpack/plugins/license/views.py:
32
msgid "License detail"
msgstr "许可证详情"
#: xpack/plugins/license/templates/license/license_detail.html:53
#: xpack/plugins/license/templates/license/license_detail.html:52
msgid "No license"
msgstr "暂无许可证"
#: xpack/plugins/license/templates/license/license_detail.html:56
msgid "Corporation"
msgstr "公司"
#: xpack/plugins/license/templates/license/license_detail.html:
57
#: xpack/plugins/license/templates/license/license_detail.html:
60
msgid "Expired"
msgstr "过期时间"
#: xpack/plugins/license/templates/license/license_detail.html:61
msgid "Count"
msgstr "数量"
#: xpack/plugins/license/templates/license/license_detail.html:63
#: xpack/plugins/license/templates/license/license_detail.html:65
#: xpack/plugins/license/templates/license/license_detail.html:69
#: xpack/plugins/license/templates/license/license_detail.html:73
#: xpack/plugins/license/templates/license/license_detail.html:77
msgid "Unlimited"
msgstr "无限制"
#: xpack/plugins/license/templates/license/license_detail.html:67
#: xpack/plugins/license/templates/license/license_detail.html:76
msgid "Concurrent connections"
msgstr "并发连接"
#: xpack/plugins/license/templates/license/license_detail.html:81
msgid "Edition"
msgstr "版本"
#: xpack/plugins/license/templates/license/license_detail.html:69
msgid "Enterprise edition"
msgstr "企业版"
#: xpack/plugins/license/templates/license/license_detail.html:93
#: xpack/plugins/license/templates/license/license_detail.html:106
msgid "Technology consulting"
msgstr "技术咨询"
#: xpack/plugins/license/templates/license/license_detail.html:
96
#: xpack/plugins/license/templates/license/license_detail.html:
109
msgid "Consult"
msgstr "咨询"
...
...
This diff is collapsed.
Click to expand it.
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