From: Andy Chiang Date: Fri, 5 Jun 2026 06:53:44 +0000 (+0700) Subject: luci-mod-network: fix redundant translation strings X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c76f968d826235af9602b0542f38d2129078d6e1;p=openwrt-luci.git luci-mod-network: fix redundant translation strings _('%s') caused redundant strings like %s to appear in i18n. _('Add') caused redundant strings like Add to appear in i18n. in addition, delete an extra space. Signed-off-by: Andy Chiang --- 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 ebf1710c79..9bb5268216 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 @@ -653,7 +653,7 @@ return view.extend({ _('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( _('%s').format(addtag), 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; @@ -705,9 +705,9 @@ return view.extend({ _('Matching option syntax: %s.').format(tag_match_option_syntax) + ' ' + _('Prefix named (IPv6) options with %s.').format(dhcp_optioncolon_code) + ' ' + _('Wildcards (%s) allowed.').format(wildcard_code) + '

' + - _('Match %s, Tag %s, sets a tag of the same name').format(dhcp_option_client_arch, tag_name_efi_ia32) + ' ' + + _('Match %s, Tag %s, sets a tag of the same name').format(dhcp_option_client_arch, tag_name_efi_ia32) + ' ' + _('when number %s appears in the list of architectures sent by the client in option %s.').format('6', '93') + '
' + - _('Use the %s Button to add a new %s.').format(_('Add'), tag_match_code_name) ); + _('Use the Add Button to add a new %s.').format(tag_match_code_name)); ss = o.subsection; ss.addremove = true; ss.anonymous = true;