diff --git a/apps/common/forms.py b/apps/common/forms.py index 3e5ffb232..ff599062f 100644 --- a/apps/common/forms.py +++ b/apps/common/forms.py @@ -190,7 +190,7 @@ class SecuritySettingForm(BaseForm): initial=9999, label=_("Password expiration time"), min_value=1, help_text=_( - "Tip: (unit/day) " + "Tip: (unit: day) " "If the user does not update the password during the time, " "the user password will expire failure;" "The password expiration reminder mail will be automatic sent to the user " diff --git a/apps/common/templates/common/security_setting.html b/apps/common/templates/common/security_setting.html index 56705f372..adc00191f 100644 --- a/apps/common/templates/common/security_setting.html +++ b/apps/common/templates/common/security_setting.html @@ -39,9 +39,9 @@ {% endif %} {% csrf_token %} -

{% trans "User login settings" %}

+

{% trans "Security setting" %}

{% for field in form %} - {% if forloop.counter == 5 %} + {% if forloop.counter == 6 %}

{% trans "Password check rule" %}

{% endif %} diff --git a/apps/common/views.py b/apps/common/views.py index e8ccfe6ba..2500d96a3 100644 --- a/apps/common/views.py +++ b/apps/common/views.py @@ -52,7 +52,7 @@ class EmailSettingView(SuperUserRequiredMixin, TemplateView): form = self.form_class(request.POST) if form.is_valid(): form.save() - msg = _("Update setting successfully, please restart program") + msg = _("Update setting successfully") messages.success(request, msg) return redirect('settings:email-setting') else: diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 91637b223..6d771b7f5 100644 Binary files a/apps/locale/zh/LC_MESSAGES/django.mo and b/apps/locale/zh/LC_MESSAGES/django.mo differ diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 8f60e2a42..05685912a 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Jumpserver 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-23 16:19+0800\n" +"POT-Creation-Date: 2018-11-23 16:44+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: ibuler \n" "Language-Team: Jumpserver team\n" @@ -1959,7 +1959,7 @@ msgid "" "Tip: (unit/minute) if the user has failed to log in for a limited number of " "times, no login is allowed during this time interval." msgstr "" -"提示: (单位: 分钟) 当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录." +"提示:(单位:分)当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录" #: common/forms.py:182 msgid "Connection max idle time" @@ -1968,7 +1968,7 @@ msgstr "SSH最大空闲时间" #: common/forms.py:184 msgid "" "If idle time more than it, disconnect connection(only ssh now) Unit: minute" -msgstr "提示: (单位: 分钟) 如果超过该配置没有操作,连接会被断开(仅ssh) " +msgstr "提示:(单位:分)如果超过该配置没有操作,连接会被断开(仅ssh)" #: common/forms.py:190 msgid "Password expiration time" @@ -1976,11 +1976,13 @@ msgstr "密码过期时间" #: common/forms.py:193 msgid "" -"Tip: (unit/day) If the user does not update the password during the time, " +"Tip: (unit: day) If the user does not update the password during the time, " "the user password will expire failure;The password expiration reminder mail " "will be automatic sent to the user by system within 5 days (daily) before " "the password expires" msgstr "" +"提示:(单位:天)如果用户在此期间没有更新密码,用户密码将过期失效; 密码过期提醒" +"邮件将在密码过期前5天内由系统(每天)自动发送给用户" #: common/forms.py:202 msgid "Password minimum length" @@ -2076,6 +2078,7 @@ msgstr "终端设置" #: common/templates/common/email_setting.html:27 #: common/templates/common/ldap_setting.html:27 #: common/templates/common/security_setting.html:27 +#: common/templates/common/security_setting.html:42 #: common/templates/common/terminal_setting.html:31 common/views.py:152 msgid "Security setting" msgstr "安全设置" @@ -2142,10 +2145,6 @@ msgstr "端点后缀" msgid "Region" msgstr "地域" -#: common/templates/common/security_setting.html:42 -msgid "User login settings" -msgstr "用户登录设置" - #: common/templates/common/security_setting.html:46 msgid "Password check rule" msgstr "密码校验规则" @@ -4569,6 +4568,9 @@ msgstr "创建组织" msgid "Update org" msgstr "更新组织" +#~ msgid "User login settings" +#~ msgstr "用户登录设置" + #~ msgid "Bit" #~ msgstr " 位"