Wikimedia

Messages mwe-upwiz-error-too-short and mwe-upwiz-error-too-long are reused, sometimes passed wrong parameters

See https://phabricator.wikimedia.org/T118902 and https://www.mediawiki.org/wiki/Extension:UploadWizard

The two localisation messages:

    "mwe-upwiz-error-too-long": "This entry is too long.\nPlease make this entry shorter than $1 {{PLURAL:$1|character|characters}}.",
    "mwe-upwiz-error-too-short": "This entry is too short.\nPlease make this entry longer than $1 {{PLURAL:$1|character|characters}}.",

Are used as error messages in two places, and while the text is correct in one of them, it should actually be "at most" / "at least" ("shorter or equal to" / "longer or equal to") in the other. See the Phabricator task for details.

As the configuration settings defining the lengths are usually nice round numbers, I think it would be best to change the messages to the "at most" / "at least" version and update the code to match.

Task tags

  • i18n
  • javascript

Students who completed this task

Ananay Arora

Task type

  • code Code
close

2015