luci-base: make translatable default values for dhcp hostname
authorAnton Kikin <a.kikin@tano-systems.com>
Sat, 19 Sep 2020 02:16:07 +0000 (05:16 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 19 Sep 2020 05:31:48 +0000 (08:31 +0300)
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>
modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js

index 28f06ecb8cfaca4e3c8af56552b1cb1a66daa259..bacbf559f9ef334e516b24b76369d752b8c22573 100644 (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) {