From ec131862d7d20454c22611e313a43b846133c099 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sun, 4 Jun 2023 03:16:46 +0300 Subject: [PATCH] luci-app-acme: Account email explanation Add ratianale how the email is used. The translation key is separate to keep an existing translation. Also reduce usage of rmempty=false Signed-off-by: Sergey Ponomarev --- .../htdocs/luci-static/resources/view/acme.js | 7 +++---- applications/luci-app-acme/po/ru/acme.po | 6 +++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js index 9c614f4fc300..eea5ec643abe 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js @@ -22,12 +22,13 @@ return view.extend({ s.anonymous = true; o = s.option(form.Value, "account_email", _("Account email"), - _("Email address to associate with account key.")) + _("Email address to associate with account key.") + ' ' + + _("If a renewal didn't happened in time you'll receive a notice at 20 days before your certificate expires.") + ) o.rmempty = false; o.datatype = "minlength(1)"; o = s.option(form.Flag, "debug", _("Enable debug logging")); - o.rmempty = false; s = m.section(form.GridSection, "cert", _("Certificate config")) s.anonymous = false; @@ -242,7 +243,6 @@ return view.extend({ o = s.taboption('advanced', form.Flag, "use_staging", _("Use staging server"), _("Get certificate from the Letsencrypt staging server " + "(use for testing; the certificate won't be valid).")); - o.rmempty = false; o.modalonly = true; o = s.taboption('advanced', form.ListValue, "key_type", _("Key size"), @@ -253,7 +253,6 @@ return view.extend({ o.value("ec256", _("ECC 256 bits")); o.value("ec384", _("ECC 384 bits")); o.default = "ec256"; - o.rmempty = false; o.modalonly = true; o = s.taboption('advanced', form.Flag, "use_acme_server", diff --git a/applications/luci-app-acme/po/ru/acme.po b/applications/luci-app-acme/po/ru/acme.po index f585e1b4090b..dc866b1ab8fb 100644 --- a/applications/luci-app-acme/po/ru/acme.po +++ b/applications/luci-app-acme/po/ru/acme.po @@ -97,10 +97,14 @@ msgstr "ECC 256 бит" msgid "ECC 384 bits" msgstr "ECC 384 бита" -#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:30 +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:25 msgid "Email address to associate with account key." msgstr "E-mail адрес для привязки ключа аккаунта." +#: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:26 +msgid "If a renewal didn't happened in time you'll receive a notice at 20 days before your certificate expires." +msgstr "Если сертификат не был перевыпущен вовремя то вы получите уведомление за 20 дней до истечения срока действия сертификата." + #: applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js:34 msgid "Enable debug logging" msgstr "Записывать в журнал данные для отладки"