From: Paul Donald Date: Tue, 3 Feb 2026 06:46:33 +0000 (+0100) Subject: luci-app-acme: fix i18n compile warn X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=20e8277d48fd6bff8169c47ca1bdefa228595872;p=openwrt-luci.git luci-app-acme: fix i18n compile warn Message contains an embedded URL. Better move it out of the translatable string Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js index 0412395c3b..d3e71ae3d6 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js @@ -40,12 +40,12 @@ return view.extend({ m = new form.Map("acme", _("ACME certificates"), _("This configures ACME (Letsencrypt) automatic certificate installation. " + "Simply fill out this to have the router configured with Letsencrypt-issued " + - "certificates for the web interface. " + - "Note that the domain names in the certificate must already be configured to " + - "point at the router's public IP address. " + - "Once configured, issuing certificates can take a while. " + - "Check the logs for progress and any errors.") + '
' + - _("Cert files are stored in") + ' /etc/ssl/acme'+ '
' + + "certificates for the web interface.") + '
' + + _("Note that the domain names in the certificate must already be configured to " + + "point at the router's public IP address.") + '
' + + _("Once configured, issuing certificates can take a while. " + + "Check the logs for progress and any errors.") + '
' + + _("Cert files are stored in") + ' /etc/ssl/acme'+ '
' + '' + _('See more') + '' ); @@ -161,11 +161,12 @@ return view.extend({ o.modalonly = true; o = s.taboption('challenge_dns', form.ListValue, 'dns', _('DNS API'), - _("To use DNS mode to issue certificates, set this to the name of a DNS API supported by acme.sh. " + - "See https://github.com/acmesh-official/acme.sh/wiki/dnsapi for the list of available APIs. " + - "In DNS mode, the domain name does not have to resolve to the router IP. " + - "DNS mode is also the only mode that supports wildcard certificates. " + - "Using this mode requires the acme-dnsapi package to be installed.")); + _("To use DNS mode to issue certificates, set this to the name of a DNS API supported by acme.sh. ") + '
' + + _("%s for the list of available APIs. " + .format(`${_('See more')}`)) + '
' + + _("In DNS mode, the domain name does not have to resolve to the router IP. ") + '
' + + _("DNS mode is also the only mode that supports wildcard certificates. ") + '
' + + _("Using this mode requires the acme-dnsapi package to be installed.")); o.depends("validation_method", "dns"); // List of supported DNS API. Names are same as file names in acme.sh for easier search. // May be outdated but not changed too often. @@ -213,24 +214,27 @@ return view.extend({ } o = s.taboption('challenge_dns', form.DynamicList, 'credentials', _('DNS API credentials'), - _("The credentials for the DNS API mode selected above. " + - "See https://github.com/acmesh-official/acme.sh/wiki/dnsapi for the format of credentials required by each API. " + - "Add multiple entries here in KEY=VAL shell variable format to supply multiple credential variables.")); + _("The credentials for the DNS API mode selected above. ") + '
' + + _("%s for the format of credentials required by each API. " + .format(`${_('See more')}`)) + '
' + + _("Add multiple entries here in KEY=VAL shell variable format to supply multiple credential variables.")); o.datatype = "list(string)"; o.depends("validation_method", "dns"); o.modalonly = true; o = s.taboption('challenge_dns', form.Value, 'calias', _('Challenge Alias'), - _("The challenge alias to use for ALL domains. " + - "See https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode for the details of this process. " + - "LUCI only supports one challenge alias per certificate.")); + _("The challenge alias to use for ALL domains. ") + '
' + + _("%s for the details of this process. " + .format(`${_('See more')}`)) + '
' + + _("LUCI only supports one challenge alias per certificate.")); o.depends("validation_method", "dns"); o.modalonly = true; o = s.taboption('challenge_dns', form.Value, 'dalias', _('Domain Alias'), - _("The domain alias to use for ALL domains. " + - "See https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode for the details of this process. " + - "LUCI only supports one challenge domain per certificate.")); + _("The domain alias to use for ALL domains. ") + '
' + + _("%s for the details of this process. " + .format(`${_('See more')}`)) + '
' + + _("LUCI only supports one challenge domain per certificate.")); o.depends("validation_method", "dns"); o.modalonly = true;