From 51e9d56b89f6571f9ced7836026a906b95bb347e Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 29 Oct 2017 19:10:04 +0100 Subject: [PATCH] Add gettext calls for i18n --- admin/mailu/ui/templates/user/create.html | 4 ++-- admin/mailu/ui/templates/user/settings.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/mailu/ui/templates/user/create.html b/admin/mailu/ui/templates/user/create.html index 76c627f4..9f5d2065 100644 --- a/admin/mailu/ui/templates/user/create.html +++ b/admin/mailu/ui/templates/user/create.html @@ -12,13 +12,13 @@
{{ form.hidden_tag() }} - {% call macros.box("General") %} + {% call macros.box(_("General")) %} {{ macros.form_field(form.localpart, append='@'+domain.name+'') }} {{ macros.form_fields((form.pw, form.pw2)) }} {{ macros.form_field(form.comment) }} {% endcall %} - {% call macros.box("Features and quotas", theme="success") %} + {% call macros.box(_("Features and quotas"), theme="success") %} {{ macros.form_field(form.quota_bytes, step=1000000000, max=(max_quota_bytes or domain.max_quota_bytes or 50000000000), prepend=''+(form.quota_bytes.data//1000000000).__str__()+' GiB', oninput='$("#quota").text(this.value/1000000000);') }} diff --git a/admin/mailu/ui/templates/user/settings.html b/admin/mailu/ui/templates/user/settings.html index 67dd4ea5..dfaff9d6 100644 --- a/admin/mailu/ui/templates/user/settings.html +++ b/admin/mailu/ui/templates/user/settings.html @@ -11,11 +11,11 @@ {% block content %} {{ form.hidden_tag() }} - {% call macros.box(title="General settings") %} + {% call macros.box(title=_("General settings")) %} {{ macros.form_field(form.displayed_name) }} {% endcall %} - {% call macros.box(title="Antispam") %} + {% call macros.box(title=_("Antispam")) %} {{ macros.form_field(form.spam_enabled) }} {{ macros.form_field(form.spam_threshold, step=1, max=100, prepend=''+form.spam_threshold.data.__str__()+' / 100',