luci-base: dispatcher.uc: fix N_()
fallback implementation
The fallback implementation of `N_()` accessed the wrong variable, a global `n` instead of the local `args`. Adjust the expression to reference the correct variable. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
a435d4e11a
commit
107ed061a8
1 changed files with 1 additions and 1 deletions
|
@ -886,7 +886,7 @@ dispatch = function(_http, path) {
|
||||||
striptags,
|
striptags,
|
||||||
entityencode,
|
entityencode,
|
||||||
_: (...args) => translate(...args) ?? args[0],
|
_: (...args) => translate(...args) ?? args[0],
|
||||||
N_: (...args) => ntranslate(...args) ?? (n[0] == 1 ? n[1] : n[2]),
|
N_: (...args) => ntranslate(...args) ?? (args[0] == 1 ? args[1] : args[2]),
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue