diff options
author | Anton Kikin <a.kikin@tano-systems.com> | 2020-09-19 05:16:07 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2020-09-19 08:31:48 +0300 |
commit | 509bf29cc9ae96350547946b207c0c0b5f61917f (patch) | |
tree | bf7af09354d8cce532c604e953d08defb4acbd49 /modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js | |
parent | 45c914a016499f297a754f00b48c5d782cbc2124 (diff) |
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>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js index 28f06ecb8c..bacbf559f9 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js @@ -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) { |