From b8c380ca513dd6e7521140fa918673aae76ec8c3 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 3 Feb 2026 08:20:51 +0100 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/openwisp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'))