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
8827fd2d
Commit
8827fd2d
authored
Sep 05, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify translation
parent
6fc3bbb9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
92 deletions
+39
-92
models.py
apps/assets/models.py
+2
-2
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+28
-86
_nav.html
apps/templates/_nav.html
+2
-2
text_field.html
apps/templates/captcha/text_field.html
+2
-2
login.html
apps/users/templates/users/login.html
+5
-0
No files found.
apps/assets/models.py
View file @
8827fd2d
...
...
@@ -106,8 +106,8 @@ class Asset(models.Model):
groups
=
models
.
ManyToManyField
(
AssetGroup
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Asset groups'
))
username
=
models
.
CharField
(
max_length
=
16
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Admin user'
))
password
=
models
.
CharField
(
max_length
=
256
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
"Admin password"
))
admin_user
=
models
.
ForeignKey
(
AdminUser
,
null
=
True
,
blank
=
True
,
on_delete
=
models
.
SET_NULL
,
verbose_name
=
_
(
"Admin
U
ser"
))
sys_user
=
models
.
ManyToManyField
(
SysUser
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
"Sys User"
))
admin_user
=
models
.
ForeignKey
(
AdminUser
,
null
=
True
,
blank
=
True
,
on_delete
=
models
.
SET_NULL
,
verbose_name
=
_
(
"Admin
u
ser"
))
sys_user
=
models
.
ManyToManyField
(
SysUser
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
"Sys
tem
User"
))
idc
=
models
.
ForeignKey
(
IDC
,
null
=
True
,
blank
=
True
,
on_delete
=
models
.
SET_NULL
,
verbose_name
=
_
(
'IDC'
))
mac_addr
=
models
.
CharField
(
max_length
=
20
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
"Mac address"
))
brand
=
models
.
CharField
(
max_length
=
64
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'Brand'
))
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
8827fd2d
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
8827fd2d
...
...
@@ -6,20 +6,18 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version:
PACKAGE VERSION
\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version:
Jumpserver 0.3.3
\n"
"Report-Msgid-Bugs-To:
ibuler@qq.com
\n"
"POT-Creation-Date: 2016-09-05 12:13+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator:
FULL NAME <EMAIL@ADDRESS
>\n"
"Language-Team:
LANGUAGE <LL@li.org
>\n"
"Language: \n"
"Last-Translator:
ibuler <ibuler@qq.com
>\n"
"Language-Team:
Jumpserver team<ibuler@qq.com
>\n"
"Language:
zh_CN
\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: assets/forms.py:20
#, fuzzy
#| msgid "Join usergroups"
msgid "Join assetgroups"
msgstr "添加到用户组"
...
...
@@ -77,21 +75,19 @@ msgstr "运营商"
#: assets/models.py:40 assets/models.py:142
msgid "KEY"
msgstr ""
msgstr "
KEY
"
#: assets/models.py:41 assets/models.py:143
msgid "VALUE"
msgstr ""
msgstr "
VALUE
"
#: assets/models.py:55 assets/models.py:77 users/forms.py:12
#: users/models.py:106 users/templates/users/login.html:58
#: users/templates/users/user_detail.html:73
#: users/templates/users/user_edit.html:5
#: users/templates/users/user_list.html:13
#, fuzzy
#| msgid "User"
msgid "Username"
msgstr "用户"
msgstr "用户
名
"
#: assets/models.py:56 assets/models.py:78 users/forms.py:13
#: users/templates/users/login.html:61
...
...
@@ -103,40 +99,36 @@ msgid "Password"
msgstr "密码"
#: assets/models.py:57 assets/models.py:80
#, fuzzy
#| msgid "ssh private key"
msgid "SSH private key"
msgstr "ssh密钥"
#: assets/models.py:58 assets/models.py:82
msgid "As default"
msgstr ""
msgstr "
默认使用
"
#: assets/models.py:59 assets/models.py:84
msgid "Auto update pass/key"
msgstr ""
msgstr "
自动更新密码/密钥
"
#: assets/models.py:79
msgid "Protocol"
msgstr ""
msgstr "
协议
"
#: assets/models.py:81
#, fuzzy
#| msgid "ssh public key"
msgid "SSH public key"
msgstr "ssh公钥"
#: assets/models.py:83
msgid "Auto push"
msgstr ""
msgstr "
自动推送
"
#: assets/models.py:85
msgid "Sudo"
msgstr ""
msgstr "
Sudo
"
#: assets/models.py:86
msgid "Shell"
msgstr ""
msgstr "
Shell
"
#: assets/models.py:87 templates/_header_bar.html:35 templates/_nav.html:4
msgid "Home"
...
...
@@ -144,19 +136,19 @@ msgstr "仪表盘"
#: assets/models.py:88
msgid "Uid"
msgstr ""
msgstr "
Uid
"
#: assets/models.py:101
msgid "IP"
msgstr ""
msgstr "
IP
"
#: assets/models.py:102
msgid "Other IP"
msgstr ""
msgstr "
其它IP
"
#: assets/models.py:103
msgid "Remote card IP"
msgstr ""
msgstr "
远控卡IP
"
#: assets/models.py:104
msgid "Hostname"
...
...
@@ -171,26 +163,16 @@ msgid "Asset groups"
msgstr "用户组"
#: assets/models.py:107
#, fuzzy
#| msgid "Edit user"
msgid "Admin user"
msgstr "
编辑
用户"
msgstr "
管理
用户"
#: assets/models.py:108
msgid "Admin password"
msgstr "管理员密码"
#: assets/models.py:109
#, fuzzy
#| msgid "Edit user"
msgid "Admin User"
msgstr "编辑用户"
#: assets/models.py:110
#, fuzzy
#| msgid "User"
msgid "Sys User"
msgstr "用户"
msgstr "
系统
用户"
#: assets/models.py:111 templates/_nav.html:23
msgid "IDC"
...
...
@@ -259,16 +241,12 @@ msgstr "资产"
#: assets/templates/assets/assetgroup_add.html:16
#: assets/templates/assets/assetgroup_list.html:5 assets/views.py:60
#, fuzzy
#| msgid "Create usergroup"
msgid "Create asset group"
msgstr "创建
用户
组"
msgstr "创建
资产
组"
#: assets/templates/assets/assetgroup_add.html:37
#, fuzzy
#| msgid "Select usergroups"
msgid "Select asset"
msgstr "选择
用户组
"
msgstr "选择
资产
"
#: assets/templates/assets/assetgroup_add.html:49
#: users/templates/users/_user.html:70
...
...
@@ -283,14 +261,12 @@ msgstr "重置"
#: users/templates/users/forget_password.html:44
#: users/templates/users/user_list.html:63
msgid "Submit"
msgstr ""
msgstr "
提交
"
#: assets/templates/assets/assetgroup_list.html:13
#: users/templates/users/user_list.html:16
#, fuzzy
#| msgid "Asset number"
msgid "Asset num"
msgstr "资产
编号
"
msgstr "资产
数量
"
#: assets/templates/assets/assetgroup_list.html:32
#: users/templates/users/user_list.html:44
...
...
@@ -327,18 +303,14 @@ msgid "Assets"
msgstr "资产管理"
#: assets/views.py:75
#, fuzzy
#| msgid "Asset groups"
msgid "Asset group list"
msgstr "
用户组
"
msgstr "
资产组列表
"
#: templates/_header_bar.html:8 users/templates/users/user_detail.html:29
msgid "Search"
msgstr "搜索"
#: templates/_header_bar.html:14
#, fuzzy
#| msgid "Welcome use Jumpserver system"
msgid "Welcome to use Jumpserver system"
msgstr "欢迎使用Jumpserver开源跳板机系统"
...
...
@@ -361,22 +333,6 @@ msgstr "用户"
msgid "Usergroup"
msgstr "用户组"
#: templates/_nav.html:22
msgid "Assetgroup"
msgstr "用户组"
#: templates/_nav.html:24
#, fuzzy
#| msgid "Asset admin"
msgid "Assetadmin"
msgstr "管理用户"
#: templates/_nav.html:25
#, fuzzy
#| msgid "Asset user"
msgid "Assetuser"
msgstr "系统用户"
#: templates/_nav.html:26
msgid "Label"
msgstr "标签"
...
...
@@ -509,10 +465,8 @@ msgstr "验证码错误"
#: users/templates/users/reset_password.html:45
#: users/templates/users/user_detail.html:159 users/utils.py:98
#, fuzzy
#| msgid "Reset password success"
msgid "Reset password"
msgstr "重置密码
成功
"
msgstr "重置密码"
#: users/templates/users/reset_password.html:55
msgid "Password again"
...
...
@@ -543,10 +497,8 @@ msgid "User log"
msgstr "登录日志"
#: users/templates/users/user_detail.html:105
#, fuzzy
#| msgid "Date expired"
msgid "Date joined"
msgstr "
失效
日期"
msgstr "
创建
日期"
#: users/templates/users/user_detail.html:109
msgid "Last login"
...
...
@@ -569,10 +521,8 @@ msgid "Add"
msgstr "添加"
#: users/templates/users/user_list.html:17
#, fuzzy
#| msgid "Is active"
msgid "Active"
msgstr "
是否
激活"
msgstr "激活"
#: users/utils.py:47
msgid "Begin to generate ssh private key ..."
...
...
@@ -697,8 +647,6 @@ msgid "Create user<a href=\"%s\">%s</a> success."
msgstr "创建用户<a href=\"%s\">%s</a> 成功"
#: users/views.py:159
#, fuzzy
#| msgid "Edit user"
msgid "Edit user"
msgstr "编辑用户"
...
...
@@ -738,9 +686,3 @@ msgstr "Token错误或失效"
#: users/views.py:296
msgid "Password not same"
msgstr "密码不一致"
#~ msgid "Asset user"
#~ msgstr "系统用户"
#~ msgid "Commit"
#~ msgstr "提交"
apps/templates/_nav.html
View file @
8827fd2d
...
...
@@ -21,8 +21,8 @@
<li
class=
"{% url 'assets:asset-list' %}"
><a
href=
""
>
{% trans 'Asset' %}
</a></li>
<li
class=
""
><a
href=
"{% url 'assets:assetgroup-list' %}"
>
{% trans 'Assetgroup' %}
</a></li>
<li
class=
""
><a
href=
""
>
{% trans 'IDC' %}
</a></li>
<li
class=
""
><a
href=
""
>
{% trans 'A
ssetadmin
' %}
</a></li>
<li
class=
""
><a
href=
""
>
{% trans '
Asset
user' %}
</a></li>
<li
class=
""
><a
href=
""
>
{% trans 'A
dmin user
' %}
</a></li>
<li
class=
""
><a
href=
""
>
{% trans '
System
user' %}
</a></li>
<li
class=
""
><a
href=
""
>
{% trans 'Label' %}
</a></li>
</ul>
</li>
...
...
apps/templates/captcha/text_field.html
View file @
8827fd2d
{% load i18n %}
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<input
autocomplete=
"off"
id=
"{{id}}_1"
class=
"form-control"
name=
"{{name}}_1"
type=
"text"
/>
<span
class=
"red-fonts"
id=
"captcha-error"
style=
"display: none"
>
验证码错误
</span>
<input
autocomplete=
"off"
id=
"{{id}}_1"
class=
"form-control"
name=
"{{name}}_1"
placeholder=
"{% trans 'Captcha' %}"
type=
"text"
/>
</div>
</div>
</br>
apps/users/templates/users/login.html
View file @
8827fd2d
...
...
@@ -11,6 +11,11 @@
{% include '_head_css_js.html' %}
<link
href=
"{% static "
css
/
jumpserver
.
css
"
%}"
rel=
"stylesheet"
>
<script
src=
"{% static "
js
/
jumpserver
.
js
"
%}"
></script>
<style>
.captcha
{
float
:
right
;
}
</style>
</head>
<body
class=
"gray-bg"
>
...
...
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