projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308215c
)
luci-base: cbi.js: handle translation contexts in _()
author
Jo-Philipp Wich
<jo@mein.io>
Fri, 14 Feb 2020 07:42:04 +0000
(08:42 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Fri, 14 Feb 2020 07:42:04 +0000
(08:42 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index d962a1d1af49fe10f62efc04d1d63ace50153b5e..2dba54750d230300b600f1c7f5be2ebdec4328c7 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/cbi.js
@@
-101,7
+101,8
@@
function trimws(s) {
}
function _(s, c) {
- return (window.TR && TR[sfh(trimws(s))]) || s;
+ var k = (c != null ? trimws(c) + '\u0001' : '') + trimws(s);
+ return (window.TR && TR[sfh(k)]) || s;
}
function N_(n, s, p, c) {