Problem:
Users can select mul as a language on the Special:NewItem page. If they fill out the description field and send the form, they will receive an error message, that says mul is not allowed for descriptions. We need to make this more intuitive.
Notes:
- The reason is that we only allow the language code mul for Labels and Aliases and not for descriptions (T313027).
- The UI language stays the preselected default.
- The list of available languages will at some point be sorted alphabetically, including "multiple languages". But we decided to make this a separate task (T332702).
- The task T330193 does a similar thing for Special:SetLabelDescriptionAliases.
Mockup:
BDD:
If an editor selects mul on Special:NewItem then we deactivate the description field.
GIVEN an editor has opened Special:NewItem
WHEN the editor selects the language code mul
THEN the description field is disabled
AND the description field is emptied
AND the explanatory text (see "Copy") is shown below the disabled field (inline message)
If the user selects any another language on Special:NewItem then we go back to normal.
GIVEN an editor has opened Special:NewItem
AND the the language code mul is selected
WHEN the editor selects any other language code
THEN the description field is enabled
AND the explanatory text is hidden
Copy:
Descriptions are not supported for this language. Please provide a description in another language once the Item is created.
Acceptance criteria:
- If an editor selects mul on Special:NewItem then we deactivate the description field.
- If the user selects any another language on Special:NewItem then we go back to normal.