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
c48531c5
Commit
c48531c5
authored
Dec 31, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 添加和修改部分翻译
parent
0916757e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
18 additions
and
15 deletions
+18
-15
_asset_group_bulk_update_modal.html
...sets/templates/assets/_asset_group_bulk_update_modal.html
+1
-1
asset_detail.html
apps/assets/templates/assets/asset_detail.html
+1
-1
cluster_assets.html
apps/assets/templates/assets/cluster_assets.html
+1
-1
cluster_list.html
apps/assets/templates/assets/cluster_list.html
+3
-3
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
task_detail.html
apps/ops/templates/ops/task_detail.html
+1
-1
jumpserver.js
apps/static/js/jumpserver.js
+5
-0
_message.html
apps/templates/_message.html
+1
-3
user.py
apps/users/models/user.py
+1
-1
user_detail.html
apps/users/templates/users/user_detail.html
+2
-2
user_profile.html
apps/users/templates/users/user_profile.html
+2
-2
No files found.
apps/assets/templates/assets/_asset_group_bulk_update_modal.html
View file @
c48531c5
...
...
@@ -2,7 +2,7 @@
{% load i18n %}
{% block modal_id %}asset_group_bulk_update_modal{% endblock %}
{% block modal_class %}modal-lg{% endblock %}
{% block modal_title%}{% trans "Update
Asset G
roup" %}{% endblock %}
{% block modal_title%}{% trans "Update
asset s
roup" %}{% endblock %}
{% block modal_body %}
{% load bootstrap3 %}
<p
class=
"text-success text-center"
>
{% trans "Hint: only change the field you want to update." %}
</p>
...
...
apps/assets/templates/assets/asset_detail.html
View file @
c48531c5
...
...
@@ -196,7 +196,7 @@
</td>
</tr>
<tr>
<td>
{% trans 'Test
is al
ive' %}:
</td>
<td>
{% trans 'Test
connect
ive' %}:
</td>
<td>
<span
class=
"pull-right"
>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
id=
"btn-test-is-alive"
style=
"width: 54px"
>
{% trans 'Test' %}
</button>
...
...
apps/assets/templates/assets/cluster_assets.html
View file @
c48531c5
...
...
@@ -71,7 +71,7 @@
<table
class=
"table"
>
<tbody>
<tr
class=
"no-borders-tr"
>
<td
width=
"50%"
>
{% trans 'Test assets
al
ive' %}:
</td>
<td
width=
"50%"
>
{% trans 'Test assets
connect
ive' %}:
</td>
<td>
<span
style=
"float: right"
>
<button
type=
"button"
class=
"btn btn-primary btn-xs"
id=
"btn-test-assets"
style=
"width: 54px"
>
{% trans 'Run' %}
</button>
...
...
apps/assets/templates/assets/cluster_list.html
View file @
c48531c5
...
...
@@ -91,12 +91,12 @@ $(document).ready(function(){
},
function
()
{
var
success
=
function
()
{
var
msg
=
"{% trans 'Cluster Deleted.' %}"
;
swal
(
"{% trans 'Cluster
D
elete' %}"
,
msg
,
"success"
);
swal
(
"{% trans 'Cluster
d
elete' %}"
,
msg
,
"success"
);
$
(
'#cluster_list_table'
).
DataTable
().
ajax
.
reload
();
};
var
fail
=
function
()
{
var
msg
=
"{% trans 'Cluster
D
eleting failed.' %}"
;
swal
(
"{% trans 'Cluster
D
elete' %}"
,
msg
,
"error"
);
var
msg
=
"{% trans 'Cluster
d
eleting failed.' %}"
;
swal
(
"{% trans 'Cluster
d
elete' %}"
,
msg
,
"error"
);
};
var
url_delete
=
the_url
+
'?id__in='
+
JSON
.
stringify
(
plain_id_list
);
APIUpdateAttr
({
url
:
url_delete
,
method
:
'DELETE'
,
success
:
success
,
error
:
fail
});
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
c48531c5
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
c48531c5
This diff is collapsed.
Click to expand it.
apps/ops/templates/ops/task_detail.html
View file @
c48531c5
...
...
@@ -69,7 +69,7 @@
<td><b><a
href=
"{% url 'ops:adhoc-detail' pk=object.latest_adhoc.id %}"
>
{{ object.latest_adhoc.short_id }}
</a></b></td>
</tr>
<tr>
<td>
{% trans 'La
te
st run' %}:
</td>
<td>
{% trans 'Last run' %}:
</td>
<td><b>
{{ object.latest_history.date_start }}
</b></td>
</tr>
<tr>
...
...
apps/static/js/jumpserver.js
View file @
c48531c5
...
...
@@ -280,6 +280,11 @@ jumpserver.initDataTable = function (options) {
language
:
{
search
:
"搜索"
,
lengthMenu
:
"每页 _MENU_"
,
info
:
"显示第 _START_ 到 _END_; 总共 _TOTAL_ "
,
infoFiltered
:
""
,
infoEmpty
:
""
,
zeroRecords
:
"没有匹配记录"
,
emptyTable
:
"没有记录"
,
paginate
:
{
first
:
"第一页"
,
previous
:
"上一页"
,
...
...
apps/templates/_message.html
View file @
c48531c5
...
...
@@ -13,9 +13,7 @@
{% if user.is_authenticated and not user.is_public_key_valid %}
<div
class=
"alert alert-danger help-message"
>
{% url 'users:user-pubkey-update' as user_pubkey_update %}
{% blocktrans %}
Your ssh public key not set or expired. Please click
<a
href=
"{{ user_pubkey_update }}"
>
this link
</a>
to update your
{% endblocktrans %}
{% trans 'Your ssh public key not set or expired. Please click
<a
href=
"{{ user_pubkey_update }}"
>
this link
</a>
to update' %}
</div>
{% endif %}
{% endblock %}
...
...
apps/users/models/user.py
View file @
c48531c5
...
...
@@ -46,7 +46,7 @@ class User(AbstractUser):
_private_key
=
models
.
CharField
(
max_length
=
5000
,
blank
=
True
,
verbose_name
=
_
(
'Private key'
))
_public_key
=
models
.
CharField
(
max_length
=
5000
,
blank
=
True
,
verbose_name
=
_
(
'Public key'
))
comment
=
models
.
TextField
(
max_length
=
200
,
blank
=
True
,
verbose_name
=
_
(
'Comment'
))
is_first_login
=
models
.
BooleanField
(
default
=
Fals
e
)
is_first_login
=
models
.
BooleanField
(
default
=
Tru
e
)
date_expired
=
models
.
DateTimeField
(
default
=
date_expired_default
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Date expired'
))
created_by
=
models
.
CharField
(
max_length
=
30
,
default
=
''
,
verbose_name
=
_
(
'Created by'
))
...
...
apps/users/templates/users/user_detail.html
View file @
c48531c5
...
...
@@ -374,11 +374,11 @@ $(document).ready(function() {
$('#txt_pk').val('');
$this.closest('.modal').modal('hide');
var msg = "
{
%
trans
'Successfully updated the SSH public key.'
%
}
";
swal("
{
%
trans
'User SSH
Public Key U
pdate'
%
}
", msg, "
success
");
swal("
{
%
trans
'User SSH
public key u
pdate'
%
}
", msg, "
success
");
};
var fail = function(msg) {
swal({
title: "
{
%
trans
'User SSH
Public Key U
pdate'
%
}
",
title: "
{
%
trans
'User SSH
public key u
pdate'
%
}
",
text: msg,
type: "
error
",
showCancelButton: false,
...
...
apps/users/templates/users/user_profile.html
View file @
c48531c5
...
...
@@ -168,12 +168,12 @@ $(document).on('click', '#btn_update_pk', function() {
var
success
=
function
()
{
$
(
'#txt_pk'
).
val
(
''
);
var
msg
=
"{% trans 'Successfully updated the SSH public key.' %}"
;
swal
(
"{% trans 'User SSH
Public Key U
pdate' %}"
,
msg
,
"success"
);
swal
(
"{% trans 'User SSH
public key u
pdate' %}"
,
msg
,
"success"
);
};
var
fail
=
function
()
{
var
msg
=
"{% trans 'Failed to update SSH public key.' %}"
;
swal
({
title
:
"{% trans 'User SSH
Public Key U
pdate' %}"
,
title
:
"{% trans 'User SSH
public key u
pdate' %}"
,
text
:
msg
,
type
:
"error"
,
showCancelButton
:
false
,
...
...
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