luci-proto-vxlan: fix format in i18n strings
authorPaul Donald <newtwen+github@gmail.com>
Sun, 17 Nov 2024 22:08:28 +0000 (23:08 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 17 Nov 2024 22:09:31 +0000 (23:09 +0100)
follow-up to 9ebffc1ecdb8871dea7d35eb8eb10dde688baf5d

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 42e2e404cfd974a257fe697b424b94abaad09170)

protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan.js

index 358f1da2cb78ff5a3edf25c45abc014ec49a7cc4..d5f0ac9c125e1dc40617673193296b8ff4d2a43b 100644 (file)
@@ -94,8 +94,8 @@ return network.registerProtocol('vxlan', {
                o.datatype = 'min(1)';
 
                o = s.taboption('general', form.Flag, 'learning', _('Learning'),
-                       _('Automatic mac learning using multicast; inserts unknown source link layer addresses and IP addresses into the VXLAN device %s'
-                               .format('<abbr title="%s">%s</abbr>'.format(_('Forwarding DataBase'), _('FDB')))));
+                       _('Automatic mac learning using multicast; inserts unknown source link layer addresses and IP addresses into the VXLAN device %s')
+                               .format('<abbr title="%s">%s</abbr>'.format(_('Forwarding DataBase'), _('FDB'))));
                o.optional = true;
                o.default = '1';
                o.rmempty = false;
@@ -238,7 +238,7 @@ return network.registerProtocol('vxlan', {
                        let isMulticastIP = ipv4MulticastRegex.test(dst) || ipv6MulticastRegex.test(dst);
 
                        if (!value && isMulticastIP) {
-                               return _('Via shall be specified when %s is a multicast address'.format(_('Peer IP')));
+                               return _('Via shall be specified when %s is a multicast address').format(_('Peer IP'));
                        }
                        return true;
                };