From da5b9be5ca0fedf8604aae20b623f032fe246426 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 28 Sep 2017 20:52:33 +0800 Subject: [PATCH] [Bugfix] Update some translation and set warning, partial fix #646 --- .../templates/assets/_asset_import_modal.html | 2 +- apps/locale/zh/LC_MESSAGES/django.mo | Bin 23889 -> 24195 bytes apps/locale/zh/LC_MESSAGES/django.po | 16 +++++++--------- .../templates/users/_user_import_modal.html | 6 +++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/apps/assets/templates/assets/_asset_import_modal.html b/apps/assets/templates/assets/_asset_import_modal.html index 64f60863b..ca7729e05 100644 --- a/apps/assets/templates/assets/_asset_import_modal.html +++ b/apps/assets/templates/assets/_asset_import_modal.html @@ -12,7 +12,7 @@
- + {% trans 'If set id, will use this id update asset existed' %}
diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 227c79b45149e44ff3663a8793648b73708186ae..855922a4c1be7f257f38036c48ab1b6d850cdbc0 100644 GIT binary patch delta 8965 zcmbW-cXSnH8prVoQj(AmNJ5ozLrEwh^bn-?-bGrFmH>fJ1ED(-G#H8k0n~s(SOpd( zxDo^@0xD9(0*DPkS6UEV6j9K1Wxu~WPj>ll&)GTW@$)`!pLgcoo8|23eF2LP2Dlf) zi>`IJvI88aGUkUkPL(2#)2pIt9p`YAP5Nzsl|787C| zryBOb;y490?<_2VtF1oA({*wwgwe1KAHcnqA3)Y{PN62aiJ=%$+i?Q15~{rhs=W)A zz_A#NlTh=fV|UC%jsFrwq)N6mBC+E1b8JC9|s0M+kzEXn##U|p{v62r-(u{5?o|3=I-#E3VAMp9T75cd;Ve}DY}6gS zh&qASEI)=i`Y%xPT*spLBbLNpP~!q(Ie$$U5$koVg34>6jyewYPBgXp1ha$L3w0uo zpiUqewO~5xU08_P$djlItVPY6W9^$_Ie+bF8x@)$-x`jhp3w)EpGPfp$?{vMBmLd- zu=?JKlt(>+>Zm(xgAZXp48din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t`HuytPsN>y2Umb)qacyBT!>#crQ#m!jrdgY=68 zPrBk6yUV^Ab_kB5PH@tmarTiNPyup)?#RfqJ~Hxk{HaCD%)s@ocq|ARQL29BlFzlv88`NSeZM_1y{#4zGsBE#bwS*n6c zloy71BzT32t1fALL_IhjBx+H=Ae!;_AkJ{VRJ?|~qx1HZ-zFA2rx-j(942a0_Y~H} z>yVFv;6tJ<`FZVsYmy!wcnyvtim0oHt%>W2cgb};KzSSfN;IX+?~v&Ke0+ibCF&FN zsn>(qi)c#Zkn6ZPBzOSZx$bwIKl*>XyWIFN?j*($E9tZacN3i`-;X-}M%+REG@d3J zP@a#=iKWCZ#G^!S>f?yJ37*X$o9IuRBy{L^MC2C!`6H1|r=i3#%GFSZ-iGgqt1EK6 zKz=3Bfapa&81?744!%I6|LvmkT;eFvoOqVdu_Gkt>;C^2KL6p@>lzwY(eNAYCAJc$ z2pxQ11b5Ol51SA={t^=Xw+n6ci4|lYUs9h;-A&}nP&=(7Dr`x&E2^> z77_!(w%{SWfmlhrLFjlfBXi{z+jB zcVKp-T9J<^Pb8ioDiPC(?+6{=62(L_#@kE~&y;o4pgbOLK^-IQ zO*X9Me`F|})00t!hRq}sFX^zH@_P5YjPe4aGVzw{Vkz&ZJPPk4X1QLpAU}9Xek-|- zG^`aCgB6skQJ$k`aJ4!RlZY-9@4{KcMR)FJ3v30wD+(Czavn}&td5Q$!6y8~WzpB= z5%l|e#WR@VK|N_qBfcWWQ1=+lCMFS`$(!LB;z?pKc@ttXWgU+b%ZODk^lj{jF(6T-m?dG^<)= r%Dl-_ipr{He-~3WD(96X=NWkm;>$MX_o`MlWq8lTuyXCz2}k}1Y07mX diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 601e4314c..1e68bc210 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -716,14 +716,12 @@ msgid "Download" msgstr "下载" #: assets/templates/assets/_asset_import_modal.html:13 -#, fuzzy -#| msgid "Asset excel file" msgid "Asset csv file" -msgstr "资产excel" +msgstr "资产csv文件" #: assets/templates/assets/_asset_import_modal.html:16 msgid "If set id, will use this id update asset existed" -msgstr "" +msgstr "如果设置了id,则会使用该行信息更新该id的资产" #: assets/templates/assets/_system_user.html:16 #: assets/templates/assets/system_user_list.html:9 @@ -1888,16 +1886,16 @@ msgid "Import user" msgstr "导入" #: users/templates/users/_user_import_modal.html:6 -msgid "Download template or use export excel format" +msgid "Download template or use export csv format" msgstr "下载模板" #: users/templates/users/_user_import_modal.html:14 -msgid "Users excel file" -msgstr "用户excel" +msgid "Users csv file" +msgstr "用户csv文件" #: users/templates/users/_user_import_modal.html:16 -msgid "If set id, will use this id update existed" -msgstr "" +msgid "If set id, will use this id update user existed" +msgstr "如果设置了id,则会使用该行信息更新该id的用户" #: users/templates/users/_user_update_pk_modal.html:4 msgid "Update User SSH Public Key" diff --git a/apps/users/templates/users/_user_import_modal.html b/apps/users/templates/users/_user_import_modal.html index 1c6179f6a..678023cfc 100644 --- a/apps/users/templates/users/_user_import_modal.html +++ b/apps/users/templates/users/_user_import_modal.html @@ -3,7 +3,7 @@ {% block modal_id %}user_import_modal{% endblock %} {% block modal_title%}{% trans "Import user" %}{% endblock %} {% block modal_body %} -

{% trans "Download template or use export excel format" %}

+

{% trans "Download template or use export csv format" %}

{% csrf_token %}
@@ -11,9 +11,9 @@ {% trans 'Download' %}
- + - {% trans 'If set id, will use this id update existed' %} + {% trans 'If set id, will use this id update user existed' %}