Page MenuHomePhabricator

[VE WikifunctionsCall]: Implement fallback strategy for function name, description, input labels and enum labels
Closed, ResolvedPublic

Description

Description

Currently the VE fallback strategy is the same as the Default View strategy (uses same store methods):

  1. show labels in user language, if not
  2. show labels in closest available fallback, if not;
  3. show labels in any available language

However, showing arbitrary languages is often confusing. We want to implement a different fallback strategy so that:

  • Wikipedia users can understand the labels and how to use functions;
  • Wikipedia users understand that there are missing labels and they can contribute to their translation

Desired behavior/Acceptance criteria

  • All labels have lang and dir html attributes
  • Fallback language strategy must apply to the "Function call information popup" and the dialogs "(1) Function selection" and "(2) Function call setup"
  • For information popup:
    • Function name:
    • Function description:
  • For (1) Function selection dialog:
    • Function name:
    • Function description:
  • For (1) Function selection dialog:
    • Function input labels:
    • (if any) Enum dropdown labels:

Completion checklist

Event Timeline

gengh renamed this task from [VE WikifunctionsCall]: Store module library.js getter getDescription to return full LabelData to [VE WikifunctionsCall]: Implement fallback strategy for function name, description, input labels and enum labels.Mar 4 2025, 8:42 AM
gengh updated the task description. (Show Details)
DSantamaria changed the task status from In Progress to Open.Mar 20 2025, 8:06 PM
gengh changed the task status from Open to In Progress.Mar 25 2025, 3:33 PM

Change #1132007 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Implement fallback strategy for VE integration

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

Change #1132007 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Implement fallback strategy for VE integration

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

Jdforrester-WMF subscribed.

No need to wait for deploy on this one, as it's not live in prod.