diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-10-18 14:03:52 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-11-05 11:01:45 +0100 |
commit | 31bce2455fdeacefbb837d6abb95584df66c36a2 (patch) | |
tree | b5737c083cb7874a97efe27fd211e1dda871dc86 | |
parent | 21a151ac1ae0efaebe1dbe1ff51f3eceb09ab85b (diff) |
luci-base: cbi.js: switch to client side translation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index a0c0d355f..b1fc26c74 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -732,7 +732,7 @@ function cbi_combobox(id, values, def, man, focus) { if (obj.value == "") { var optdef = document.createElement("option"); optdef.value = ""; - optdef.appendChild(document.createTextNode(typeof(def) === 'string' ? def : cbi_strings.label.choose)); + optdef.appendChild(document.createTextNode(typeof(def) === 'string' ? def : _('-- Please choose --'))); sel.appendChild(optdef); } else { @@ -757,7 +757,7 @@ function cbi_combobox(id, values, def, man, focus) { var optman = document.createElement("option"); optman.value = ""; - optman.appendChild(document.createTextNode(typeof(man) === 'string' ? man : cbi_strings.label.custom)); + optman.appendChild(document.createTextNode(typeof(man) === 'string' ? man : _('-- custom --'))); sel.appendChild(optman); obj.style.display = "none"; @@ -887,7 +887,7 @@ function cbi_dynlist_init(parent, datatype, optional, choices) cbi_validate_field(t.id, ((i+1) == values.length) || optional, datatype); if (choices) { - cbi_combobox_init(t.id, choices, '', cbi_strings.label.custom); + cbi_combobox_init(t.id, choices, '', _('-- custom --')); b.index = i; cbi_bind(b, 'keydown', cbi_dynlist_keydown); |