luci-app-mwan3: fix missing translation call for Weight label
authorMichael Pfeifroth <redacted>
Wed, 22 Apr 2026 13:49:58 +0000 (15:49 +0200)
committerPaul Donald <redacted>
Wed, 22 Apr 2026 16:09:07 +0000 (18:09 +0200)
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 <redacted>
applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js

index 814d1401a4e79be052f486848293adeb0eaf0c60..8a4195243eea77c1b4d999a626f9eb492dacb638 100644 (file)
@@ -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)';
 
git clone https://git.99rst.org/PROJECT