luci-app-banip: fix i18n compile warn
authorPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 06:31:43 +0000 (07:31 +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-banip/htdocs/luci-static/resources/view/banip/overview.js

index fe529b47677ad6273a40fcc83e96aff28c27a758..470993a2c799b0af8733dd7c7d17651ca4cd646d 100644 (file)
@@ -38,7 +38,7 @@ return view.extend({
                let m, s, o;
 
                m = new form.Map('banip', 'banIP', _('Configuration of the banIP package to ban incoming and outgoing IPs via named nftables Sets. \
-                       For further information please check the <a style="color:#37c;font-weight:bold;" href="https://github.com/openwrt/packages/blob/master/net/banip/files/README.md" target="_blank" rel="noreferrer noopener" >online documentation</a>'));
+                       For further information please check the %s.'.format(`<a style="color:#37c;font-weight:bold;" href="https://github.com/openwrt/packages/blob/master/net/banip/files/README.md" target="_blank" rel="noreferrer noopener" >${_('online documentation')}</a>`)));
 
                /*
                        set text content helper function