luci-app-openwisp: fix i18n compile warn
authorPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 07:20:51 +0000 (08:20 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 07:49:05 +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-openwisp/htdocs/luci-static/resources/view/openwisp.js

index a8856bd3325f47c67b54b76cd63804602fa01929..342aace64a5688e966ef7c0199e17954502fcf78 100644 (file)
@@ -9,7 +9,7 @@ return view.extend({
 
                m = new form.Map('openwisp',
                        _('OpenWISP'),
-                       _("Configure, start and stop the OpenWISP agent on this device. Read more about configuration values: <a target='_blank' rel='noopener noreferrer' href='https://github.com/openwisp/openwisp-config'>https://github.com/openwisp/openwisp-config</a>"));
+                       _("Configure, start and stop the OpenWISP agent on this device. Read more about configuration values: %s.".format("<a target='_blank' rel='noopener noreferrer' href='https://github.com/openwisp/openwisp-config'>openwisp config</a>")));
 
                s = m.section(form.NamedSection, 'http', 'controller');
 
@@ -30,7 +30,7 @@ return view.extend({
                o.value('monitoring', _('Enabled'));
                o.default = 'monitoring'
 
-               o = s.taboption('general', form.Value, 'url', _('Server URL'), _('The URL to the OpenWISP server. Example: https://openwisp2.mynetwork.com'))
+               o = s.taboption('general', form.Value, 'url', _('Server URL'), _('The URL to the OpenWISP server. Example: %s'.format('https://openwisp2.mynetwork.com')))
                o.placeholder = 'https://openwisp2.mynetwork.com'
 
                o = s.taboption('general', form.Value, 'shared_secret', _('Shared Secret'), _('The organization shared secret for auto enrollment.'))