Steps to replicate the issue (include links if applicable):
- Go to http://localhost:8080/wiki/Special:MentorDashboard
- Set your Mentor status to Away
- Enter 366 as "You’ll be gone for"
What happens?:
An error message appears saying Input in "You'll be gone for" is too high. The maximum number of days a mentor can be away for is $1 (one year).
What should have happened instead?:
The error message is displayed with proper parameter substitution, eg. saying:
Input in "You'll be gone for" is too high. The maximum number of days a mentor can be away for is 365 (one year).
Other information
Spotted when reviewing https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/ /1091887, filling separately as it is irrelevant to the patch.