From: Paul Donald Date: Tue, 3 Feb 2026 07:20:51 +0000 (+0100) Subject: luci-app-openwisp: fix i18n compile warn X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b8c380ca513dd6e7521140fa918673aae76ec8c3;p=openwrt-luci.git luci-app-openwisp: fix i18n compile warn Message contains an embedded URL. Better move it out of the translatable string Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js b/applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js index a8856bd332..342aace64a 100644 --- a/applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js +++ b/applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js @@ -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: https://github.com/openwisp/openwisp-config")); + _("Configure, start and stop the OpenWISP agent on this device. Read more about configuration values: %s.".format("openwisp config"))); 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.'))