luci-base: make translatable default values for dhcp hostname

We must be able to translate these values.

Fixes: fd75c2b7c ("luci-base: add default value options dhcp hostname")
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
This commit is contained in:
Anton Kikin 2020-09-19 05:16:07 +03:00 committed by Hannu Nyman
parent 45c914a016
commit 509bf29cc9

View file

@ -21,8 +21,8 @@ return network.registerProtocol('dhcp', {
o = s.taboption('general', form.Value, 'hostname', _('Hostname to send when requesting DHCP'));
o.default = '';
o.value('', 'Send the hostname of this device');
o.value('*', 'Do not send a hostname');
o.value('', _('Send the hostname of this device'));
o.value('*', _('Do not send a hostname'));
o.datatype = 'or(hostname, "*")';
o.load = function(section_id) {
return callFileRead('/proc/sys/kernel/hostname').then(L.bind(function(hostname) {