luci-mod-network: consistent language in static cfg
authorDavid Härdeman <[email protected]>
Sun, 5 Oct 2025 06:43:58 +0000 (08:43 +0200)
committerPaul Donald <[email protected]>
Fri, 24 Oct 2025 18:23:34 +0000 (20:23 +0200)
I've tried to make this more consistent by using "for" to describe values
that are assigned to the host by the DHCP server and "of" to describe values
that are provided by the host to the DHCP server.

Signed-off-by: David Härdeman <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 5d97ff1838285fa9adbe9f8b7b93046e9d506155..0c804f9bfb4c570cb1c9762f28576ad1cabe9c97 100644 (file)
@@ -738,7 +738,7 @@ return view.extend({
 
                so = ss.option(form.Value, 'name',
                        _('Hostname'),
-                       _('Optional hostname to assign'));
+                       _('The hostname for this host (optional).'));
                so.validate = validateHostname;
                so.rmempty  = true;
                so.write = function(section, value) {
@@ -800,8 +800,7 @@ return view.extend({
                        so.value(mac, hint ? '%s (%s)'.format(mac, hint) : mac);
                });
 
-               so = ss.option(form.Value, 'ip', _('IPv4 address'),
-                       _('The IP address to be used for this host, or <em>ignore</em> to ignore any DHCP request from this host.'));
+               so = ss.option(form.Value, 'ip', _('IPv4 address'), _('The IPv4 address for this host, or <em>ignore</em> to ignore DHCP requests from this host.'));
                so.value('ignore', _('Ignore'));
                so.datatype = 'or(ip4addr,"ignore")';
                so.validate = function(section, value) {
@@ -866,7 +865,7 @@ return view.extend({
 
                so = ss.option(form.DynamicList, 'tag',
                        _('Tag'),
-                       _('Assign new, freeform tags to this entry.'));
+                       _('Additional tags for this host.'));
 
                so = ss.option(form.DynamicList, 'match_tag',
                        _('Match Tag'),