From ad487f931f75bceedddea23128ba9879501a4b5a Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 27 May 2026 16:02:53 +0300 Subject: [PATCH] luci-mod-network: convert tag strings i18n matchtags closes #8603 Signed-off-by: Paul Donald --- .../luci-static/resources/view/network/dhcp.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 1eaa6ada95..52a4bccf4b 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -647,13 +647,13 @@ return view.extend({ // Match Tags o = tagstab.taboption('matchtags', form.SectionValue, '__tags__', form.TableSection, 'tag', null, - _(`A ${tagcodestring} is an alphanumeric label.`) + ' ' + _(`They are attached to a DHCP client or transaction.`) + '
' + - _(`dnsmasq conditionally applies chosen DHCP options when a specific ${tagcodestring} is encountered.`) + '
' + - _(`In other words: "This ${tagcodestring} gets these ${tag_named_ov_string}".`) + '
' + - _(`${tagcodestring}s do not do anything by themselves. They are labels that other directives test against.`) + '
' + - _(`Note: invalid ${tag_named_ov_string} combinations may cause dnsmasq to crash silently.`) + '

' + - _(`Prepend a ${tagcodestring} with ${exclamationmark_invert} to invert their domain of application, e.g. to send options to a host lacking a ${tagcodestring}.`) + '

' + - _(`Use the %s button to add a new ${tagcodestring}.`).format( _(`${addtag}`) ) ); + _('A %s is an alphanumeric label.', 'A tag is an alphanumeric label').format(tagcodestring) + ' ' + _('They filter which options apply to which hosts.') + '
' + + _('dnsmasq conditionally applies chosen DHCP options when a specific %s is encountered.', 'when a specific tag is encountered').format(tagcodestring) + '
' + + _('In other words: "This %s gets these %s".', 'this tag gets these options').format(tagcodestring, tag_named_ov_string) + '
' + + _('A %s does not do anything by itself. It is a label that other directives test against.', 'A tag does not do anything by itself').format(tagcodestring) + '
' + + _('Note: invalid %s combinations may cause dnsmasq to crash silently.', 'invalid tag combinations may cause crashes').format(tag_named_ov_string) + '

' + + _('Prepend a %s with %s to invert their domain of application, e.g. to send options to a host lacking a %s.', 'prepend a tag with ! to invert their meaning').format(tagcodestring, exclamationmark_invert, tagcodestring) + '

' + + _('Use the %s button to add a new %s.', 'use the add button to add a new tag').format( _(`${addtag}`), tagcodestring ) ); ss = o.subsection; ss.placeholder = _('tag name'); ss.sortable = true;