From 00e949fd22eca7b7fe1d9e51e45f5e4b16b62d22 Mon Sep 17 00:00:00 2001 From: Michael Pfeifroth Date: Wed, 22 Apr 2026 15:49:58 +0200 Subject: [PATCH] luci-app-mwan3: fix missing translation call for Weight label The 'Weight' option label in the member configuration uses ('Weight') instead of _('Weight'), so the string is never passed through the translation function and always displays in English regardless of the selected language. Signed-off-by: Michael Pfeifroth --- .../htdocs/luci-static/resources/view/mwan3/network/member.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js index 814d1401a4..8a4195243e 100644 --- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js +++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js @@ -58,7 +58,7 @@ return view.extend({ _('Acceptable values: 1-256. Defaults to 1 if not set')); o.datatype = 'range(1, 256)'; - o = s.option(form.Value, 'weight', ('Weight'), + o = s.option(form.Value, 'weight', _('Weight'), _('Acceptable values: 1-1000. Defaults to 1 if not set')); o.datatype = 'range(1, 1000)';