Commit 509bf29c authored by Anton Kikin's avatar Anton Kikin Committed by Hannu Nyman
Browse files

luci-base: make translatable default values for dhcp hostname

We must be able to translate these values.

Fixes: fd75c2b7

 ("luci-base: add default value options dhcp hostname")
Signed-off-by: default avatarAnton Kikin <a.kikin@tano-systems.com>
parent 45c914a0
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment