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 <michael.pfeifroth@westermo.com>
This commit is contained in:
Michael Pfeifroth
2026-04-22 15:49:58 +02:00
committed by Paul Donald
parent e0d557fdb9
commit 00e949fd22
@@ -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)';