luci-app-mosquitto: fix i18n compile warn
authorPaul Donald <redacted>
Tue, 3 Feb 2026 06:10:13 +0000 (07:10 +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-mosquitto/htdocs/luci-static/resources/view/mosquitto/mosquitto.js

index a319a8c5e0aab35447d889896e5cad741ff2d46f..bc03db83ee13c8513c295ab48fb6e6b23b103bed 100644 (file)
@@ -25,8 +25,9 @@ return view.extend({
                // Define the Map
                m = new form.Map('mosquitto', _('Mosquitto MQTT Broker'), _(
                        'mosquitto - the ' +
-                       "<a href='http://www.mosquitto.org'>blood thirsty</a>" +
-                       ' MQTT messaging broker. Note, only some of the available configuration files ' +
+                       '%s' +
+                       ' MQTT messaging broker.'.format('<a href="http://www.mosquitto.org">blood thirsty</a>')) + '<br/>' +
+                       _('Note, only some of the available configuration files ' +
                        'are supported at this stage. Use the checkbox below to use config generated ' +
                        'by this page, or the stock mosquitto configuration file in %s.'
                        .format('<code>' + mosquitto_conf + '</code>')));
git clone https://git.99rst.org/PROJECT