From: Michael Pfeifroth Date: Wed, 22 Apr 2026 13:49:58 +0000 (+0200) Subject: luci-app-mwan3: fix missing translation call for Weight label X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=00e949fd22eca7b7fe1d9e51e45f5e4b16b62d22;p=openwrt-luci.git 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 --- 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)';