Page MenuHomePhabricator

Display all wishlist parts in current UI language
Closed, ResolvedPublic5 Estimated Story Points

Description

This is a follow-up to Test Case 9 of T399514.

On the wishlist homepage, we show the focus area index in the content language, but the wish index in the UI language. Additionally, the FA titles in the filter field are shown in the content language, in a field that has a label in the UI language.


Derived Requirement

Ensure that all wishlist-related UI elements on the wishlist homepage are consistently displayed in the current UI language. This includes the focus area index, wish index, and focus area titles shown within filter controls. No wishlist content or labels should fall back to the content language when a UI language is explicitly set.

Test Steps

Test Case 1: Display Focus Area Index in UI Language

Preconditions

  • The wishlist homepage is accessible.
  • The UI language is set to a language different from the wiki content language.
  1. Open Wikipedia.
  2. Change the UI language to a non-default language.
  3. Navigate to the wishlist homepage.
  4. Observe the focus area index section.
  5. ✅❓❌⬜ AC1: Confirm that all focus area titles in the focus area index are displayed in the current UI language and not in the content language.

Test Case 2: Display Wish Index in UI Language

Preconditions

  • Same as Test Case 1.
  1. Navigate to the wishlist homepage with the UI language set.
  2. Observe the list of wishes displayed in the wish index.
  3. ✅❓❌⬜ AC2: Confirm that all wish titles and related textual elements in the wish index are displayed in the current UI language.

Test Case 3: Display Focus Area Filter Values in UI Language

Preconditions

  • Same as Test Case 1.
  • At least one focus area exists.
  1. Navigate to the wishlist homepage.
  2. Locate the focus area filter field.
  3. Open or interact with the focus area filter.
  4. Observe the focus area titles shown as selectable values.
  5. ✅❓❌⬜ AC3: Confirm that focus area titles within the filter field are displayed in the current UI language and match the language of the filter label.

QA Results - Meta Beta

ACStatusDetails
1T407349#11538709
2T407349#11538709
3T407349#11538709

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1196210 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Use user language in parser function renderers

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

The other option here is to do it the other way around, and show the UI elements in the content language. That would mean that all elements on a page would conform to the language of the Translate selector at the top (and for wikis without Translate, it'd be the site language). There are usually more interface languages than target languages for page translations, so that'd reduce the number of people interacting with the filters etc. in their own language.

Change #1196210 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Use user language in parser function renderers

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

MusikAnimal subscribed.

So I think the big part missing here is to get the parser output as a whole to be in the user interface language, and then set lang and dir attributes for user-submitted content (like the description). That will make the MinT integration much more efficient, which is needed for T408160: Make the MinT translation preference on by default if possible.

It seems like setting the ParserOutput language in the ParserAfterTidy hooks fixes most everything. I've got a WIP patch for that I will submit here, and move this back into development since I don't think we're quite ready for QA given how much userlang/pagelang mismatches there are currently. I'm assuming @Samwilson wasn't actively working on this task. If so, sorry if I'm stepping on toes!

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

[mediawiki/extensions/CommunityRequests@master] Render everything possible in the user interface language

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

Change #1204089 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Render everything possible in the user interface language

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

Change #1215721 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/CommunityRequests@master] Add user dismissable CSS class to cdx-message

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

Change #1215721 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Add user dismissable CSS class to cdx-message

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

@HMonroy @dmaza @Samwilson since MusikAnimal is away. Can you please review the below? Thanks!

Test Result - Meta Beta

Status: ❓Need More Info
Environment: Meta Beta
OS: macOS Tahoe 26.1
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist

Test Steps

Test Case 1: Display Focus Area Index in UI Language

Preconditions

  • The wishlist homepage is accessible.
  • The UI language is set to a language different from the wiki content language.
  1. Open Wikipedia.
  2. Change the UI language to a non-default language.
  3. Navigate to the wishlist homepage.
  4. Observe the focus area index section.
  5. AC1: Confirm that all focus area titles in the focus area index are displayed in the current UI language and not in the content language.

If the UI language is in Spanish, why is "Supported by: <# people> is in Spanish for all languages when you change the content language, except for English. Also when they UI is in Spansih "View 1 wish in this area" changes to the content language you select

Test Case 2: Display Wish Index in UI Language

Preconditions

  • Same as Test Case 1.
  1. Navigate to the wishlist homepage with the UI language set.
  2. Observe the list of wishes displayed in the wish index.
  3. AC2: Confirm that all wish titles and related textual elements in the wish index are displayed in the current UI language.

UI language as Spanish. I see that for the column headers, only "Status" translated to Spanish. Regarding information, only the dates in "Created" and "Status" are translated. What parts are supposed to be the UI language you select?

2026-01-05_12-01-16.png (851×1 px, 170 KB)

Test Case 3: Display Focus Area Filter Values in UI Language

Preconditions

  • Same as Test Case 1.
  • At least one focus area exists.
  1. Navigate to the wishlist homepage.
  2. Locate the focus area filter field.
  3. Open or interact with the focus area filter.
  4. Observe the focus area titles shown as selectable values.
  5. AC3: Confirm that focus area titles within the filter field are displayed in the current UI language and match the language of the filter label.

So only one header translated in the Filter Section. Also only the options in "Statuses" translated in Spanish. What parts in the Filter section should be translated?

Possible Issues

What determines the FA card on the main wishlist page? I created a new one and it did not show. I also deleted the 2 FA cards that started with "856", but are still showing. If you want me to create any tasks from this, please let me know.

GMikesell-WMF changed the task status from Open to In Progress.Jan 5 2026, 8:09 PM
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.

@GMikesell-WMF Let me know if this is working as expected now after our discussion a few days ago

@dmaza Thanks for the info! Confirmed display all wishlist parts in the current UI language, as seen in the videos below. I will mark this as Resolved. Thanks for all your work!

Test Result - Meta Beta

Status: ✅ PASS
Environment: Meta Beta
OS: macOS Tahoe 26.2
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist

Test Steps

Test Case 1: Display Focus Area Index in UI Language

Preconditions

  • The wishlist homepage is accessible.
  • The UI language is set to a language different from the wiki content language.
  1. Open Wikipedia.
  2. Change the UI language to a non-default language.
  3. Navigate to the wishlist homepage.
  4. Observe the focus area index section.
  5. AC1: Confirm that all focus area titles in the focus area index are displayed in the current UI language and not in the content language.

Test Case 2: Display Wish Index in UI Language

Preconditions

  • Same as Test Case 1.
  1. Navigate to the wishlist homepage with the UI language set.
  2. Observe the list of wishes displayed in the wish index.
  3. AC2: Confirm that all wish titles and related textual elements in the wish index are displayed in the current UI language.

Test Case 3: Display Focus Area Filter Values in UI Language

Preconditions

  • Same as Test Case 1.
  • At least one focus area exists.
  1. Navigate to the wishlist homepage.
  2. Locate the focus area filter field.
  3. Open or interact with the focus area filter.
  4. Observe the focus area titles shown as selectable values.
  5. AC3: Confirm that focus area titles within the filter field are displayed in the current UI language and match the language of the filter label.

GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)