luci-mod-network: fix redundant translation strings
authorAndy Chiang <redacted>
Fri, 5 Jun 2026 06:53:44 +0000 (13:53 +0700)
committerHannu Nyman <redacted>
Fri, 12 Jun 2026 16:12:05 +0000 (19:12 +0300)
_('<em>%s</em>') caused redundant strings like <em>%s</em> to appear in i18n.
_('<em>Add</em>') caused redundant strings like <em>Add</em> to appear in i18n.
in addition, delete an extra space.

Signed-off-by: Andy Chiang <redacted>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index ebf1710c7972142f35c93d77d9ea67fb2095fd11..9bb5268216dd3e0d72c654330840c1967161695e 100644 (file)
@@ -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) + '<br />' +
                        _('Note: invalid %s combinations may cause dnsmasq to crash silently.', 'invalid tag combinations may cause crashes').format(tag_named_ov_string) + '<br /><br />' +
                        _('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) + '<br /><br />' +
-                       _('Use the %s button to add a new %s.', 'use the add button to add a new tag').format( _('<em>%s</em>').format(addtag), tagcodestring ) );
+                       _('Use the <em>%s</em> 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) + '<br /><br />' +
-                       _('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('<code>6</code>', '<code>93</code>') + '<br />' +
-                       _('Use the %s Button to add a new %s.').format(_('<em>Add</em>'), tag_match_code_name) );
+                       _('Use the <em>Add</em> Button to add a new %s.').format(tag_match_code_name));
                ss = o.subsection;
                ss.addremove = true;
                ss.anonymous = true;
git clone https://git.99rst.org/PROJECT