Commit d48f8dce authored by ibuler's avatar ibuler

[Update] 修改翻译

parent abb1a40a
...@@ -27,7 +27,7 @@ class BasicSettingView(AdminUserRequiredMixin, TemplateView): ...@@ -27,7 +27,7 @@ class BasicSettingView(AdminUserRequiredMixin, TemplateView):
form.save() form.save()
if "AUTH_LDAP" in form.cleaned_data: if "AUTH_LDAP" in form.cleaned_data:
ldap_auth_enable.send(form.cleaned_data["AUTH_LDAP"]) ldap_auth_enable.send(form.cleaned_data["AUTH_LDAP"])
messages.success(request, _("Update basic setting successfully")) messages.success(request, _("Update setting successfully"))
return redirect('settings:basic-setting') return redirect('settings:basic-setting')
else: else:
context = self.get_context_data() context = self.get_context_data()
...@@ -52,7 +52,7 @@ class EmailSettingView(AdminUserRequiredMixin, TemplateView): ...@@ -52,7 +52,7 @@ class EmailSettingView(AdminUserRequiredMixin, TemplateView):
form = self.form_class(request.POST) form = self.form_class(request.POST)
if form.is_valid(): if form.is_valid():
form.save() form.save()
messages.success(request, _("Update email setting successfully")) messages.success(request, _("Update setting successfully"))
return redirect('settings:email-setting') return redirect('settings:email-setting')
else: else:
context = self.get_context_data() context = self.get_context_data()
...@@ -77,7 +77,7 @@ class LDAPSettingView(AdminUserRequiredMixin, TemplateView): ...@@ -77,7 +77,7 @@ class LDAPSettingView(AdminUserRequiredMixin, TemplateView):
form = self.form_class(request.POST) form = self.form_class(request.POST)
if form.is_valid(): if form.is_valid():
form.save() form.save()
messages.success(request, _("Update ldap setting successfully")) messages.success(request, _("Update setting successfully"))
return redirect('settings:ldap-setting') return redirect('settings:ldap-setting')
else: else:
context = self.get_context_data() context = self.get_context_data()
......
This diff is collapsed.
...@@ -51,11 +51,6 @@ ...@@ -51,11 +51,6 @@
<li id="session-online"><a href="{% url 'terminal:session-online-list' %}">{% trans 'Session online' %}</a></li> <li id="session-online"><a href="{% url 'terminal:session-online-list' %}">{% trans 'Session online' %}</a></li>
<li id="session-offline"><a href="{% url 'terminal:session-offline-list' %}">{% trans 'Session offline' %}</a></li> <li id="session-offline"><a href="{% url 'terminal:session-offline-list' %}">{% trans 'Session offline' %}</a></li>
<li id="command"><a href="{% url 'terminal:command-list' %}">{% trans 'Command' %}</a></li> <li id="command"><a href="{% url 'terminal:command-list' %}">{% trans 'Command' %}</a></li>
<li>
<a href="{% url 'terminal:web-terminal' %}" target="_blank">
{% trans 'Web terminal' %}
</a>
</li>
</ul> </ul>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment