mirror of
https://github.com/openwrt/luci.git
synced 2025-12-22 01:44:35 +04:00
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:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user