mirror of https://github.com/jumpserver/jumpserver
[Update] 添加和修改部分翻译
parent
0916757eb8
commit
c48531c586
|
@ -2,7 +2,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block modal_id %}asset_group_bulk_update_modal{% endblock %}
|
{% block modal_id %}asset_group_bulk_update_modal{% endblock %}
|
||||||
{% block modal_class %}modal-lg{% endblock %}
|
{% block modal_class %}modal-lg{% endblock %}
|
||||||
{% block modal_title%}{% trans "Update Asset Group" %}{% endblock %}
|
{% block modal_title%}{% trans "Update asset sroup" %}{% endblock %}
|
||||||
{% block modal_body %}
|
{% block modal_body %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
<p class="text-success text-center">{% trans "Hint: only change the field you want to update." %}</p>
|
<p class="text-success text-center">{% trans "Hint: only change the field you want to update." %}</p>
|
||||||
|
|
|
@ -196,7 +196,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans 'Test is alive' %}:</td>
|
<td>{% trans 'Test connective' %}:</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
<button type="button" class="btn btn-primary btn-xs" id="btn-test-is-alive" style="width: 54px">{% trans 'Test' %}</button>
|
<button type="button" class="btn btn-primary btn-xs" id="btn-test-is-alive" style="width: 54px">{% trans 'Test' %}</button>
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="no-borders-tr">
|
<tr class="no-borders-tr">
|
||||||
<td width="50%">{% trans 'Test assets alive' %}:</td>
|
<td width="50%">{% trans 'Test assets connective' %}:</td>
|
||||||
<td>
|
<td>
|
||||||
<span style="float: right">
|
<span style="float: right">
|
||||||
<button type="button" class="btn btn-primary btn-xs" id="btn-test-assets" style="width: 54px">{% trans 'Run' %}</button>
|
<button type="button" class="btn btn-primary btn-xs" id="btn-test-assets" style="width: 54px">{% trans 'Run' %}</button>
|
||||||
|
|
|
@ -91,12 +91,12 @@ $(document).ready(function(){
|
||||||
}, function() {
|
}, function() {
|
||||||
var success = function() {
|
var success = function() {
|
||||||
var msg = "{% trans 'Cluster Deleted.' %}";
|
var msg = "{% trans 'Cluster Deleted.' %}";
|
||||||
swal("{% trans 'Cluster Delete' %}", msg, "success");
|
swal("{% trans 'Cluster delete' %}", msg, "success");
|
||||||
$('#cluster_list_table').DataTable().ajax.reload();
|
$('#cluster_list_table').DataTable().ajax.reload();
|
||||||
};
|
};
|
||||||
var fail = function() {
|
var fail = function() {
|
||||||
var msg = "{% trans 'Cluster Deleting failed.' %}";
|
var msg = "{% trans 'Cluster deleting failed.' %}";
|
||||||
swal("{% trans 'Cluster Delete' %}", msg, "error");
|
swal("{% trans 'Cluster delete' %}", msg, "error");
|
||||||
};
|
};
|
||||||
var url_delete = the_url + '?id__in=' + JSON.stringify(plain_id_list);
|
var url_delete = the_url + '?id__in=' + JSON.stringify(plain_id_list);
|
||||||
APIUpdateAttr({url: url_delete, method: 'DELETE', success: success, error: fail});
|
APIUpdateAttr({url: url_delete, method: 'DELETE', success: success, error: fail});
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -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>
|
<td><b><a href="{% url 'ops:adhoc-detail' pk=object.latest_adhoc.id %}">{{ object.latest_adhoc.short_id }}</a></b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans 'Latest run' %}:</td>
|
<td>{% trans 'Last run' %}:</td>
|
||||||
<td><b>{{ object.latest_history.date_start }}</b></td>
|
<td><b>{{ object.latest_history.date_start }}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -280,6 +280,11 @@ jumpserver.initDataTable = function (options) {
|
||||||
language: {
|
language: {
|
||||||
search: "搜索",
|
search: "搜索",
|
||||||
lengthMenu: "每页 _MENU_",
|
lengthMenu: "每页 _MENU_",
|
||||||
|
info: "显示第 _START_ 到 _END_; 总共 _TOTAL_ ",
|
||||||
|
infoFiltered: "",
|
||||||
|
infoEmpty: "",
|
||||||
|
zeroRecords: "没有匹配记录",
|
||||||
|
emptyTable: "没有记录",
|
||||||
paginate: {
|
paginate: {
|
||||||
first: "第一页",
|
first: "第一页",
|
||||||
previous: "上一页",
|
previous: "上一页",
|
||||||
|
|
|
@ -13,9 +13,7 @@
|
||||||
{% if user.is_authenticated and not user.is_public_key_valid %}
|
{% if user.is_authenticated and not user.is_public_key_valid %}
|
||||||
<div class="alert alert-danger help-message">
|
<div class="alert alert-danger help-message">
|
||||||
{% url 'users:user-pubkey-update' as user_pubkey_update %}
|
{% url 'users:user-pubkey-update' as user_pubkey_update %}
|
||||||
{% blocktrans %}
|
{% trans 'Your ssh public key not set or expired. Please click <a href="{{ user_pubkey_update }}"> this link </a>to update' %}
|
||||||
Your ssh public key not set or expired. Please click <a href="{{ user_pubkey_update }}"> this link </a>to update your
|
|
||||||
{% endblocktrans %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -46,7 +46,7 @@ class User(AbstractUser):
|
||||||
_private_key = models.CharField(max_length=5000, blank=True, verbose_name=_('Private key'))
|
_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'))
|
_public_key = models.CharField(max_length=5000, blank=True, verbose_name=_('Public key'))
|
||||||
comment = models.TextField(max_length=200, blank=True, verbose_name=_('Comment'))
|
comment = models.TextField(max_length=200, blank=True, verbose_name=_('Comment'))
|
||||||
is_first_login = models.BooleanField(default=False)
|
is_first_login = models.BooleanField(default=True)
|
||||||
date_expired = models.DateTimeField(default=date_expired_default, blank=True, null=True, verbose_name=_('Date expired'))
|
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'))
|
created_by = models.CharField(max_length=30, default='', verbose_name=_('Created by'))
|
||||||
|
|
||||||
|
|
|
@ -374,11 +374,11 @@ $(document).ready(function() {
|
||||||
$('#txt_pk').val('');
|
$('#txt_pk').val('');
|
||||||
$this.closest('.modal').modal('hide');
|
$this.closest('.modal').modal('hide');
|
||||||
var msg = "{% trans 'Successfully updated the SSH public key.' %}";
|
var msg = "{% trans 'Successfully updated the SSH public key.' %}";
|
||||||
swal("{% trans 'User SSH Public Key Update' %}", msg, "success");
|
swal("{% trans 'User SSH public key update' %}", msg, "success");
|
||||||
};
|
};
|
||||||
var fail = function(msg) {
|
var fail = function(msg) {
|
||||||
swal({
|
swal({
|
||||||
title: "{% trans 'User SSH Public Key Update' %}",
|
title: "{% trans 'User SSH public key update' %}",
|
||||||
text: msg,
|
text: msg,
|
||||||
type: "error",
|
type: "error",
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
|
|
|
@ -168,12 +168,12 @@ $(document).on('click', '#btn_update_pk', function() {
|
||||||
var success = function() {
|
var success = function() {
|
||||||
$('#txt_pk').val('');
|
$('#txt_pk').val('');
|
||||||
var msg = "{% trans 'Successfully updated the SSH public key.' %}";
|
var msg = "{% trans 'Successfully updated the SSH public key.' %}";
|
||||||
swal("{% trans 'User SSH Public Key Update' %}", msg, "success");
|
swal("{% trans 'User SSH public key update' %}", msg, "success");
|
||||||
};
|
};
|
||||||
var fail = function() {
|
var fail = function() {
|
||||||
var msg = "{% trans 'Failed to update SSH public key.' %}";
|
var msg = "{% trans 'Failed to update SSH public key.' %}";
|
||||||
swal({
|
swal({
|
||||||
title: "{% trans 'User SSH Public Key Update' %}",
|
title: "{% trans 'User SSH public key update' %}",
|
||||||
text: msg,
|
text: msg,
|
||||||
type: "error",
|
type: "error",
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
|
|
Loading…
Reference in New Issue