Page MenuHomePhabricator

don't share messages for wishes and for focus areas in Community Requests
Closed, ResolvedPublicBUG REPORT

Description

There are messages for describing the status of focus areas and wishes, for supporting them, etc. The same messages are used for both wishes and focus areas. The problem with this is that some languages need different words for wishes and focus areas. In Hebrew, Italian, and probably in many other languages "wish" and "focus area" need adjectives from different grammatical genders. That's an example of incorrect message re-use.

The messages should be split—one message for wishes and another for focus areas.

The ones I could identify are:

  • communityrequests-status-under-review
  • communityrequests-status-unsupported
  • communityrequests-status-declined
  • communityrequests-status-community-opportunity
  • communityrequests-status-long-term-opportunity
  • communityrequests-status-near-term-opportunity
  • communityrequests-status-prioritized
  • communityrequests-status-done
  • communityrequests-support-dialog-title

It's possible that I missed some, but it's OK to start from these.


Derived Requirement

Ensure that Community Requests uses separate localized message keys for *wishes* and *focus areas* to prevent incorrect grammatical gender or contextual usage in languages where the two terms differ. Each of the following shared messages must be split into two distinct message sets—one for wishes and one for focus areas:

  • "communityrequests-status-wish-under-review": "Under review",
  • "communityrequests-status-wish-accepted": "Accepted",
  • "communityrequests-status-wish-unsupported": "Unsupported",
  • "communityrequests-status-wish-declined": "Declined",
  • "communityrequests-status-wish-community-opportunity": "Community opportunity",
  • "communityrequests-status-wish-long-term-opportunity": "Long-term opportunity",
  • "communityrequests-status-wish-near-term-opportunity": "Near-term opportunity",
  • "communityrequests-status-wish-prioritized": "Prioritized",
  • "communityrequests-status-wish-in-progress": "In progress",
  • "communityrequests-status-wish-done": "Done",
  • "communityrequests-status-focus-area-under-review": "Under review",
  • "communityrequests-status-focus-area-accepted": "Accepted",
  • "communityrequests-status-focus-area-unsupported": "Unsupported",
  • "communityrequests-status-focus-area-declined": "Declined",
  • "communityrequests-status-focus-area-community-opportunity": "Community opportunity",
  • "communityrequests-status-focus-area-long-term-opportunity": "Long-term opportunity",
  • "communityrequests-status-focus-area-near-term-opportunity": "Near-term opportunity",
  • "communityrequests-status-focus-area-prioritized": "Prioritized",
  • "communityrequests-status-focus-area-in-progress": "In progress",
  • "communityrequests-status-focus-area-done": "Done",

Test Steps

Test Case 1: Verify separate localized messages for wishes

  1. Navigate to a Community Requests page displaying a wish (e.g., Special:CommunityRequests/Wishes).
  2. Observe the status and support-related messages shown for the wish.
  3. ✅❓❌⬜ AC1: Confirm that the messages use the new wish-specific keys and translations (e.g., communityrequests-wish-status-under-review).

Test Case 2: Verify separate localized messages for focus areas

  1. Navigate to a Community Requests page displaying a focus area (e.g., Special:CommunityRequests/FocusAreas).
  2. Observe the status and support-related messages shown for the focus area.
  3. ✅❓❌⬜ AC2: Confirm that the messages use the new focus-area-specific keys and translations (e.g., communityrequests-focusarea-status-under-review).

QA Results - Meta Beta

ACStatusDetails
1T402027#11282356
2T402027#11282356

Event Timeline

What makes this non-trival is that the i18n keys for the statuses are defined in configuration. We have $wgCommunityRequestsStatuses right now that serves for both wishes and focus areas. So we either need to dynamically append -focus-area to message keys where appropriate, or introduce a different config for focus area statuses.

We talked at one point about not having the same statuses for focus areas, because some don't apply. It does seem like maybe it's only 'declined' that's definitely not going to be used for a FA though, so for now it might be simpler to just keep using the same list. (I thought it might be good to sort that out while doing this task because it'll create new i18n messages that will be translated, and we shouldn't create more than are necessary.)

There are seven status messages that are no longer used: draft, submitted, open, delivered, blocked, and archived. I'll remove these.

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

[mediawiki/extensions/CommunityRequests@master] Use separate messages for statuses for wishes vs focus areas

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

Samwilson changed the task status from Open to In Progress.Oct 15 2025, 12:12 AM

Change #1195796 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Use separate messages for statuses for wishes vs focus areas

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

Samwilson changed the task status from In Progress to Open.Oct 16 2025, 3:50 AM
Samwilson moved this task from Feedback and Review to QA on the Community-Tech (Sea Lion Squad) board.

@Samwilson Confirmed localized messages for wish and focus areas as seen in the screenshots 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.0.1
Browser: Chrome 141
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Verify separate localized messages for wishes

  1. Navigate to a Community Requests page displaying a wish (e.g., Special:CommunityRequests/Wishes).
  2. Observe the status and support-related messages shown for the wish.
  3. AC1: Confirm that the messages use the new wish-specific keys and translations (e.g., communityrequests-wish-status-under-review).
WishJson
2025-10-16_10-41-14.png (941×1 px, 205 KB)
2025-10-16_10-37-54.png (716×1 px, 419 KB)

Test Case 2: Verify separate localized messages for focus areas

  1. Navigate to a Community Requests page displaying a focus area (e.g., Special:CommunityRequests/FocusAreas).
  2. Observe the status and support-related messages shown for the focus area.
  3. AC2: Confirm that the messages use the new focus-area-specific keys and translations (e.g., communityrequests-focusarea-status-under-review).
Focus AreaJson
2025-10-16_10-37-32.png (889×855 px, 149 KB)
2025-10-16_10-37-54.png (716×1 px, 419 KB)
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.