mirror of
https://git.openwrt.org/project/luci.git
synced 2025-11-01 06:21:40 +08:00
luci-mod-network: consistent language in static cfg
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 <david@hardeman.nu>
This commit is contained in:
committed by
Paul Donald
parent
46daebe715
commit
b5ee911ee5
@ -738,7 +738,7 @@ return view.extend({
|
|||||||
|
|
||||||
so = ss.option(form.Value, 'name',
|
so = ss.option(form.Value, 'name',
|
||||||
_('Hostname'),
|
_('Hostname'),
|
||||||
_('Optional hostname to assign'));
|
_('The hostname for this host (optional).'));
|
||||||
so.validate = validateHostname;
|
so.validate = validateHostname;
|
||||||
so.rmempty = true;
|
so.rmempty = true;
|
||||||
so.write = function(section, value) {
|
so.write = function(section, value) {
|
||||||
@ -800,8 +800,7 @@ return view.extend({
|
|||||||
so.value(mac, hint ? '%s (%s)'.format(mac, hint) : mac);
|
so.value(mac, hint ? '%s (%s)'.format(mac, hint) : mac);
|
||||||
});
|
});
|
||||||
|
|
||||||
so = ss.option(form.Value, 'ip', _('IPv4 address'),
|
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.'));
|
||||||
_('The IP address to be used for this host, or <em>ignore</em> to ignore any DHCP request from this host.'));
|
|
||||||
so.value('ignore', _('Ignore'));
|
so.value('ignore', _('Ignore'));
|
||||||
so.datatype = 'or(ip4addr,"ignore")';
|
so.datatype = 'or(ip4addr,"ignore")';
|
||||||
so.validate = function(section, value) {
|
so.validate = function(section, value) {
|
||||||
@ -866,7 +865,7 @@ return view.extend({
|
|||||||
|
|
||||||
so = ss.option(form.DynamicList, 'tag',
|
so = ss.option(form.DynamicList, 'tag',
|
||||||
_('Tag'),
|
_('Tag'),
|
||||||
_('Assign new, freeform tags to this entry.'));
|
_('Additional tags for this host.'));
|
||||||
|
|
||||||
so = ss.option(form.DynamicList, 'match_tag',
|
so = ss.option(form.DynamicList, 'match_tag',
|
||||||
_('Match Tag'),
|
_('Match Tag'),
|
||||||
|
|||||||
Reference in New Issue
Block a user