git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
45c914a
)
luci-base: make translatable default values for dhcp hostname
author
Anton Kikin
<redacted>
Sat, 19 Sep 2020 02:16:07 +0000
(
05:16
+0300)
committer
Hannu Nyman
<redacted>
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 <redacted>
modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js
patch
|
blob
|
history
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 28f06ecb8cfaca4e3c8af56552b1cb1a66daa259..bacbf559f9ef334e516b24b76369d752b8c22573 100644
(file)
--- 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) {
git clone https://git.99rst.org/PROJECT