Skip to content

Commit da5b9be

Browse files
committed
[Bugfix] Update some translation and set warning, partial fix jumpserver#646
1 parent d1fbbd3 commit da5b9be

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

apps/assets/templates/assets/_asset_import_modal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="form-group">
1313
<label class="control-label" for="id_users">{% trans "Asset csv file" %}</label>
1414
<input id="id_assets" type="file" name="file" />
15-
<span class="help-block">
15+
<span class="help-block red-fonts">
1616
{% trans 'If set id, will use this id update asset existed' %}
1717
</span>
1818
</div>
306 Bytes
Binary file not shown.

apps/locale/zh/LC_MESSAGES/django.po

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -716,14 +716,12 @@ msgid "Download"
716716
msgstr "下载"
717717

718718
#: assets/templates/assets/_asset_import_modal.html:13
719-
#, fuzzy
720-
#| msgid "Asset excel file"
721719
msgid "Asset csv file"
722-
msgstr "资产excel"
720+
msgstr "资产csv文件"
723721

724722
#: assets/templates/assets/_asset_import_modal.html:16
725723
msgid "If set id, will use this id update asset existed"
726-
msgstr ""
724+
msgstr "如果设置了id,则会使用该行信息更新该id的资产"
727725

728726
#: assets/templates/assets/_system_user.html:16
729727
#: assets/templates/assets/system_user_list.html:9
@@ -1888,16 +1886,16 @@ msgid "Import user"
18881886
msgstr "导入"
18891887

18901888
#: users/templates/users/_user_import_modal.html:6
1891-
msgid "Download template or use export excel format"
1889+
msgid "Download template or use export csv format"
18921890
msgstr "下载模板"
18931891

18941892
#: users/templates/users/_user_import_modal.html:14
1895-
msgid "Users excel file"
1896-
msgstr "用户excel"
1893+
msgid "Users csv file"
1894+
msgstr "用户csv文件"
18971895

18981896
#: users/templates/users/_user_import_modal.html:16
1899-
msgid "If set id, will use this id update existed"
1900-
msgstr ""
1897+
msgid "If set id, will use this id update user existed"
1898+
msgstr "如果设置了id,则会使用该行信息更新该id的用户"
19011899

19021900
#: users/templates/users/_user_update_pk_modal.html:4
19031901
msgid "Update User SSH Public Key"

apps/users/templates/users/_user_import_modal.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
{% block modal_id %}user_import_modal{% endblock %}
44
{% block modal_title%}{% trans "Import user" %}{% endblock %}
55
{% block modal_body %}
6-
<p class="text-success">{% trans "Download template or use export excel format" %}</p>
6+
<p class="text-success">{% trans "Download template or use export csv format" %}</p>
77
<form method="post" action="{% url 'users:user-import' %}" id="fm_user_import" enctype="multipart/form-data">
88
{% csrf_token %}
99
<div class="form-group">
1010
<label class="control-label" for="id_users">{% trans "Template" %}</label>
1111
<a href="{% url 'users:user-export' %}" style="display: block">{% trans 'Download' %}</a>
1212
</div>
1313
<div class="form-group">
14-
<label class="control-label" for="id_users">{% trans "Users excel file" %}</label>
14+
<label class="control-label" for="id_users">{% trans "Users csv file" %}</label>
1515
<input id="id_users" type="file" name="file" />
16-
<span class="help-block">{% trans 'If set id, will use this id update existed' %}</span>
16+
<span class="help-block red-fonts">{% trans 'If set id, will use this id update user existed' %}</span>
1717
</div>
1818
</form>
1919
<p>

0 commit comments

Comments
 (0)