jow- / luci-ng

LuCI on Angular
84 stars 26 forks source link

luci2-ui-base: fix l2.cgi.js validation messages #21

Closed feckert closed 8 years ago

feckert commented 8 years ago

Signed-off-by: Florian Eckert Eckert.Florian@googlemail.com

jow- commented 8 years ago

This commit looks wrong to me, what you're actually fixing here?

feckert commented 8 years ago

When the input will be validated then i want to see the range or min/max values what the input expects.

Must be a number between %d and %d

Must be a number between 0 and 4294967295

jow- commented 8 years ago

Ok but then use the format function to interpolate values: gettext('Must be a number between %d and %d').format(min, max)

jow- commented 8 years ago

Merged manually with two tiny white space changes, thanks!