luci-proto-vxlan: fix format in i18n strings

follow-up to 9ebffc1ecd

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2024-11-17 23:08:28 +01:00
parent ea8b7aa5ee
commit 42e2e404cf

View File

@@ -94,8 +94,8 @@ return network.registerProtocol('vxlan', {
o.datatype = 'min(1)'; o.datatype = 'min(1)';
o = s.taboption('general', form.Flag, 'learning', _('Learning'), 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' _('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'))))); .format('<abbr title="%s">%s</abbr>'.format(_('Forwarding DataBase'), _('FDB'))));
o.optional = true; o.optional = true;
o.default = '1'; o.default = '1';
o.rmempty = false; o.rmempty = false;
@@ -238,7 +238,7 @@ return network.registerProtocol('vxlan', {
let isMulticastIP = ipv4MulticastRegex.test(dst) || ipv6MulticastRegex.test(dst); let isMulticastIP = ipv4MulticastRegex.test(dst) || ipv6MulticastRegex.test(dst);
if (!value && isMulticastIP) { 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; return true;
}; };