luci-app-bcp38: fix i18n compile warn
authorPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 06:04:06 +0000 (07:04 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 07:49:04 +0000 (08:49 +0100)
Message contains an embedded URL.
Better move it out of the translatable string

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-bcp38/htdocs/luci-static/resources/view/bcp38/form.js

index d982cdae4b993eadd40a441f4baa510f4cb2247c..f2dfd1211097ee2bed2b9016aaf1dcc9d468350a 100644 (file)
@@ -9,9 +9,8 @@ return view.extend({
 
                m = new form.Map('bcp38', _('BCP38'),
                        _('This function blocks packets with private address destinations ' +
-                       'from going out onto the internet as per ' +
-                       '<a href="http://tools.ietf.org/html/bcp38">BCP 38</a>. ' +
-                       'For IPv6, only source specific default routes are installed, so ' +
+                       'from going out onto the internet as per %s'.format('<a href="http://tools.ietf.org/html/bcp38">BCP 38</a>') + '<br/>' +
+                       _('For IPv6, only source specific default routes are installed, so ' +
                        'no BCP38 firewall routes are needed.'));