Background
Many users have their interface language set to their native language, but are perfectly comfortable writing in English. Or vice versa: They have the interface language set to English, but normally write in their native tongue. In either case, they may stumble across the Wishlist, and write a wish in a language different than the interface language. What happens is then we need to fix things after the fact, and that's only when we happen to even notice the page language is wrong. We were warned about this problem very early on by @tstarling. It came up again in T409992.
We need to allow users to specify which language they write their wish in from the get-go.
Acceptance criteria
- For all users, when creating a new wish or focus area, a dropdown to select the language should be the first form element. I suggest the label: "Language that this wish is written in".
- The dropdown should default to the having the user's interface language selected.
- When editing an existing wish or focus area, the same dropdown should be present – but only if the user has the pagelang user right (such as an admin/sysop)
- Changing the value should however update the baselang parameter in the wikitext accordingly.
Derived Requirement
Ensure that users can explicitly select the language of a wish or focus area during creation by providing a language selection dropdown as the first form element, defaulting to the user’s interface language.
When editing an existing wish or focus area, the language selection dropdown must be available only to users with the appropriate permissions, and any change to the selected language must update the page’s base language parameter in the wikitext.
Test Steps
Test Case 1: Ensure language dropdown is present as the first field when creating a wish
- Log in to Wikipedia with any user account.
- Navigate to the wish creation page.
- Observe the form fields displayed.
- ✅❓❌⬜ AC1: A language selection dropdown labeled "Language that this wish is written in" is displayed as the first form element.
Test Case 2: Ensure language dropdown defaults to the user’s interface language
- Log in to Wikipedia with a user whose interface language is set to a non-default language (e.g., Spanish).
- Navigate to the wish creation page.
- Observe the selected value in the language dropdown.
- ✅❓❌⬜ AC2: The dropdown defaults to the user’s interface language.
Test Case 3: Ensure users can select a different language when creating a wish
- Log in to Wikipedia with any user account.
- Navigate to the wish creation page.
- Change the value in the language dropdown to a different language.
- Fill out the required fields and submit the wish.
- Open the created wish page and inspect its content.
- ✅❓❌⬜ AC3: The selected language is reflected in the page’s base language parameter in the wikitext.
Test Case 4: Ensure language dropdown is visible when editing for users with pagelang rights
- Log in to Wikipedia with a user who has pagelang rights (e.g., admin/sysop).
- Navigate to an existing wish or focus area page.
- Open the edit form.
- Observe the form fields.
- ✅❓❌⬜ AC4: The language selection dropdown is present in the edit form.
Test Case 5: Ensure language dropdown is not visible when editing for users without pagelang rights
- Log in to Wikipedia with a user who does not have pagelang rights.
- Navigate to an existing wish or focus area page.
- Open the edit form.
- Observe the form fields.
- ✅❓❌⬜ AC5: The language selection dropdown is not present in the edit form.
Test Case 6: Ensure changing language updates the base language parameter
- Log in to Wikipedia with a user who has pagelang rights.
- Navigate to an existing wish or focus area page.
- Open the edit form.
- Change the selected language in the dropdown.
- Save the changes.
- Inspect the updated wikitext of the page.
- ✅❓❌⬜ AC6: The baselang parameter in the wikitext is updated to match the selected language.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T414395#11745638 |
| 2 | ✅ | T414395#11745638 |
| 3 | ✅ | T414395#11745638 |
| 4 | ✅ | T414395#11745638 |
| 5 | ✅ | T414395#11759802 |
| 6 | ✅ | T414395#11759802 |






