luci-app-crowdsec-firewall-bouncer: fix i18n compile warn
authorPaul Donald <redacted>
Tue, 3 Feb 2026 06:48:29 +0000 (07:48 +0100)
committerPaul Donald <redacted>
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 <redacted>
applications/luci-app-crowdsec-firewall-bouncer/htdocs/luci-static/resources/view/crowdsec-firewall-bouncer/form.js

index 98d746e9940fa977ef45ecb81da15ebdc423fe37..647ad60b304dabd141135614a9ed1f6090bb5bf3 100644 (file)
@@ -8,8 +8,8 @@ return view.extend({
                let m, s, o;
 
                m = new form.Map('crowdsec', _('CrowdSec'),
-                       _('Gain <a href="http://www.crowdsec.net">crowd-sourced</a> protection against malicious IPs. ' +
-                       'Benefit from the most accurate CTI in the world.'));
+                       _('Gain %s protection against malicious IPs.'.format('<a href="http://www.crowdsec.net">crowd-sourced</a>')) + '<br/>' +
+                       _('Benefit from the most accurate CTI in the world.'));
 
 
                s = m.section(form.TypedSection, 'bouncer', _('Bouncer'));
git clone https://git.99rst.org/PROJECT