Page MenuHomePhabricator

Allow users to specify their language when creating wishes
Closed, ResolvedPublic5 Estimated Story Points

Assigned To
Authored By
HMonroy
Jan 13 2026, 12:50 AM
Referenced Files
F73861217: 2026-03-27_11-37-02.webm
Fri, Mar 27, 8:28 PM
F73861195: 2026-03-27_11-29-52.webm
Fri, Mar 27, 8:28 PM
F73571486: 2026-03-24_10-02-21.webm
Tue, Mar 24, 5:38 PM
F73571482: 2026-03-24_09-55-35.webm
Tue, Mar 24, 5:38 PM
F73571603: 2026-03-24_08-57-55.png
Tue, Mar 24, 5:38 PM
F73571583: 2026-03-24_10-15-13.webm
Tue, Mar 24, 5:38 PM
F73571680: 2026-03-24_08-59-22.png
Tue, Mar 24, 5:38 PM
F73571677: 2026-03-24_10-28-36.png
Tue, Mar 24, 5:38 PM

Description

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

  1. Log in to Wikipedia with any user account.
  2. Navigate to the wish creation page.
  3. Observe the form fields displayed.
  4. ✅❓❌⬜ 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

  1. Log in to Wikipedia with a user whose interface language is set to a non-default language (e.g., Spanish).
  2. Navigate to the wish creation page.
  3. Observe the selected value in the language dropdown.
  4. ✅❓❌⬜ AC2: The dropdown defaults to the user’s interface language.

Test Case 3: Ensure users can select a different language when creating a wish

  1. Log in to Wikipedia with any user account.
  2. Navigate to the wish creation page.
  3. Change the value in the language dropdown to a different language.
  4. Fill out the required fields and submit the wish.
  5. Open the created wish page and inspect its content.
  6. ✅❓❌⬜ 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

  1. Log in to Wikipedia with a user who has pagelang rights (e.g., admin/sysop).
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Observe the form fields.
  5. ✅❓❌⬜ 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

  1. Log in to Wikipedia with a user who does not have pagelang rights.
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Observe the form fields.
  5. ✅❓❌⬜ AC5: The language selection dropdown is not present in the edit form.

Test Case 6: Ensure changing language updates the base language parameter

  1. Log in to Wikipedia with a user who has pagelang rights.
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Change the selected language in the dropdown.
  5. Save the changes.
  6. Inspect the updated wikitext of the page.
  7. ✅❓❌⬜ AC6: The baselang parameter in the wikitext is updated to match the selected language.

QA Results - Meta Beta

Event Timeline

Change #1226035 had a related patch set uploaded (by Shivaansh Singh; author: Shivaansh Singh):

[mediawiki/extensions/CommunityRequests@master] Preserve wish language when editing form

https://gerrit.wikimedia.org/r/1226035

Ideally, I'd want to be able to enter the wish directly in both English and my own language, without having to wait for an admin (admin or some other status, I'm not sure what right is required here) to make it translatable.

MusikAnimal raised the priority of this task from Low to Medium.Mar 5 2026, 12:24 AM
MusikAnimal subscribed.

https://meta.wikimedia.org/wiki/Community_Wishlist/W517 was another example of this that I just had to manually fix. That was the very first wish in the list… so there could be tons more, who knows :/

This needs to be addressed, certainly before we do any promotional campaign given the widespread multilingualism of the Wikimedia user base. Not high-priority or anything, but we otherwise are bound to forever get wishes incorrectly recorded as a language different than what it actually is. This can cause issues with searching, throw off our metrics, and imposes undue burden on volunteers who have to fix it. It is clear by now that the problem described here is common and often even goes unnoticed, so let's just add the language input already.

Ideally, I'd want to be able to enter the wish directly in English and in my own language, without having to wait for an admin (I'm not sure what right exactly is required) to make it translatable.

It doesn't ever need to be made translatable, per se. We even have automatic translation now :)

You can write your wish in whatever language you want, and whether or not it is set up for human translation is irrelevant. Translation administration is a complicated process requiring human intervention. For end users, it's not something you need to be concerned about.

Ideally, I'd want to be able to enter the wish directly in English and in my own language, without having to wait for an admin (I'm not sure what right exactly is required) to make it translatable.

It doesn't ever need to be made translatable, per se. We even have automatic translation now :)

You can write your wish in whatever language you want, and whether or not it is set up for human translation is irrelevant. Translation administration is a complicated process requiring human intervention. For end users, it's not something you need to be concerned about.

It is, because translation tool only work when people already ate on the wish page, but they will never find that page unless they go through the entire wish list or it is mentioned elsewhete if it isn't in english and if they cannot find it with a simple search.

Maybe WMF does read all wishes, but users trying to support wishes on a subject will never do that.

It is, because translation tool only work when people already ate on the wish page, but they will never find that page unless they go through the entire wish list or it is mentioned elsewhete if it isn't in english and if they cannot find it with a simple search.

The machine translation should work on any Wishlist page. You do have to enable the preference, though (see docs). We want to turn it on by default but need to make sure performance issues are ironed out first (T408160).

That said, I just realized what you were saying here:

I'd want to be able to enter the wish directly in both English and my own language, without having to wait for an admin (admin or some other status, I'm not sure what right is required here) to make it translatable.

So you want to add translations immediately! Sadly that can't be done, since preparing a page for translation requires manual human intervention. This is just how Extension:Translate works, I'm afraid.

MusikAnimal renamed this task from Allow "Language" input field when editing a form to Allow users to specify their language when creating wishes.Mar 5 2026, 4:30 AM
MusikAnimal changed the task status from Open to In Progress.Mar 7 2026, 12:05 AM
MusikAnimal claimed this task.

Change #1249028 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] intake: add baselang field to select language when applicable

https://gerrit.wikimedia.org/r/1249028

HMonroy changed the task status from In Progress to Open.Mar 19 2026, 11:18 PM
HMonroy moved this task from Feedback and Review to QA on the Community-Tech (Sea Lion Squad) board.

Change #1249028 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] intake: add baselang field to select language when applicable

https://gerrit.wikimedia.org/r/1249028

@MusikAnimal Please review AC5 and AC6, thanks!

Test Result - Meta Beta

Status: ✅ PASS ❌ FAIL
Environment:Meta Beta
OS: macOS Tahoe 26.3.1
Browser: Chrome 146
Device: MBA
Emulated Device: NA

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/W35
https://meta.wikimedia.beta.wmcloud.org/wiki/Special:ListGroupRights

Test Artifact(s):

Test Steps

Test Case 1: Ensure language dropdown is present as the first field when creating a wish

  1. Log in to Wikipedia with any user account.
  2. Navigate to the wish creation page.
  3. Observe the form fields displayed.
  4. AC1: A language selection dropdown labeled "Language that this wish is written in" is displayed as the first form element.
EnglishDeutschAry
2026-03-23_13-04-36.png (999×1 px, 121 KB)
2026-03-23_13-04-55.png (987×1 px, 132 KB)
2026-03-23_13-05-55.png (984×1 px, 132 KB)

Test Case 2: Ensure language dropdown defaults to the user’s interface language

  1. Log in to Wikipedia with a user whose interface language is set to a non-default language (e.g., Spanish).
  2. Navigate to the wish creation page.
  3. Observe the selected value in the language dropdown.
  4. AC2: The dropdown defaults to the user’s interface language.

Test Case 3: Ensure users can select a different language when creating a wish

  1. Log in to Wikipedia with any user account.
  2. Navigate to the wish creation page.
  3. Change the value in the language dropdown to a different language.
  4. Fill out the required fields and submit the wish.
  5. Open the created wish page and inspect its content.
  6. 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

  1. Log in to Wikipedia with a user who has pagelang rights (e.g., admin/sysop).
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Observe the form fields.
  5. AC4: The language selection dropdown is present in the edit form.
Only Admin, Community Wishlist Managers and Translation Admins have pagelangAdminTranslation AdminCommunity Wishlist Manager
2026-03-24_08-59-31.png (278×891 px, 85 KB)
2026-03-24_10-28-36.png (222×951 px, 62 KB)
2026-03-24_08-59-22.png (127×890 px, 37 KB)

Test Case 5: Ensure language dropdown is not visible when editing for users without pagelang rights

  1. Log in to Wikipedia with a user who does not have pagelang rights.
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Observe the form fields.
  5. AC5: The language selection dropdown is not present in the edit form.

Only Admin, Community Wishlist Managers and Translation Admins have pagelang but only Admin, Community Wishlist Managers can access to edit the wish form as seen in the screenshot below so you won't be able to even get on the form to see the language dropdown.

Interface Admin does not have pagelang or even supposed to have access to the wishlist edit page

Interface Admin Access

What it's supposed to show if I only have Interface Admin rights since I'm not supposed to have access to the form

2026-03-24_08-57-55.png (575×942 px, 74 KB)

Test Case 6: Ensure changing language updates the base language parameter

  1. Log in to Wikipedia with a user who has pagelang rights.
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Change the selected language in the dropdown.
  5. Save the changes.
  6. Inspect the updated wikitext of the page.
  7. AC6: The baselang parameter in the wikitext is updated to match the selected language.

Edit Form- won't allow me to select a language from the dropdown box and edit the form.
Edit source- Language was updated to Deutsch but the page still stayed in English

❌ Edit form❌ Edit Source
GMikesell-WMF changed the task status from Open to In Progress.Tue, Mar 24, 5:39 PM
GMikesell-WMF updated Other Assignee, added: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from QA to In Development on the Community-Tech (Sea Lion Squad) board.

Change #1260116 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] BaseLangField: normalize value before generating the menu item label

https://gerrit.wikimedia.org/r/1260116

  1. AC5: The language selection dropdown is not present in the edit form.

Only Admin, Community Wishlist Managers and Translation Admins have pagelang but only Admin, Community Wishlist Managers can access to edit the wish form as seen in the screenshot below so you won't be able to even get on the form to see the language dropdown.

Correct. That is how Meta-Wiki is set up, but other MW installations might have pagelang assigned to other user groups.

Interface Admin does not have pagelang or even supposed to have access to the wishlist edit page

Interface Admin Access

What it's supposed to show if I only have Interface Admin rights since I'm not supposed to have access to the form

2026-03-24_08-57-55.png (575×942 px, 74 KB)

Is the account you're using a steward? Stewards have pagelang globally.

Test Case 6: Ensure changing language updates the base language parameter

  1. Log in to Wikipedia with a user who has pagelang rights.
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Change the selected language in the dropdown.
  5. Save the changes.
  6. Inspect the updated wikitext of the page.
  7. AC6: The baselang parameter in the wikitext is updated to match the selected language.

**Edit Form- won't allow me to select a language from the dropdown box and edit the form.

Legit bug, thanks. I've submitted a fix for review.

Edit source- Language was updated to Deutsch but the page still stayed in English**

That was the "bonus points" part of the task description, which I didn't do. You must change the actual language of the page manually. I'll remove this from the acceptance criteria.

HMonroy changed the task status from In Progress to Open.Thu, Mar 26, 2:25 AM
HMonroy moved this task from Feedback and Review to QA on the Community-Tech (Sea Lion Squad) board.

Change #1260116 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] BaseLangField: normalize value before generating the menu item label

https://gerrit.wikimedia.org/r/1260116

  1. AC5: The language selection dropdown is not present in the edit form.

Only Admin, Community Wishlist Managers and Translation Admins have pagelang but only Admin, Community Wishlist Managers can access to edit the wish form as seen in the screenshot below so you won't be able to even get on the form to see the language dropdown.

Correct. That is how Meta-Wiki is set up, but other MW installations might have pagelang assigned to other user groups.

Interface Admin does not have pagelang or even supposed to have access to the wishlist edit page

Interface Admin Access

What it's supposed to show if I only have Interface Admin rights since I'm not supposed to have access to the form

2026-03-24_08-57-55.png (575×942 px, 74 KB)

Is the account you're using a steward? Stewards have pagelang globally.

AC5: The language selection dropdown is not present in the edit form.

Not sure what happened since you were in the video, it had no steward rights, but I did try it again, and it did not show this time around. Maybe just a one-time bug when I tested it.

Test Case 6: Ensure changing language updates the base language parameter

  1. Log in to Wikipedia with a user who has pagelang rights.
  2. Navigate to an existing wish or focus area page.
  3. Open the edit form.
  4. Change the selected language in the dropdown.
  5. Save the changes.
  6. Inspect the updated wikitext of the page.
  7. AC6: The baselang parameter in the wikitext is updated to match the selected language.

**Edit Form- won't allow me to select a language from the dropdown box and edit the form.

Legit bug, thanks. I've submitted a fix for review.

Edit source- Language was updated to Deutsch but the page still stayed in English**

That was the "bonus points" part of the task description, which I didn't do. You must change the actual language of the page manually. I'll remove this from the acceptance criteria.

AC6: The baselang parameter in the wikitext is updated to match the selected language.

Edit Form
GMikesell-WMF updated the task description. (Show Details)