Skip to content

Commit

Permalink
luci-app-acme: Account email explanation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stokito committed Jun 4, 2023
1 parent 50220d7 commit ec13186
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"),
Expand All @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion applications/luci-app-acme/po/ru/acme.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "Записывать в журнал данные для отладки"
Expand Down

0 comments on commit ec13186

Please sign in to comment.