Page MenuHomePhabricator

No keys are shown when the labels are not available in the selected language
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • Only the labels in Spanish are shown, the rest are not shown in the fallback language.

What should have happened instead?:

  • Every label should be shown, if it's not available in Spanish, its closest fallback should be displayed instead.

More information

  • The wikilambdaload_zobjects when passed lang property performs the necessary actions to filter all the multilingual strings and return only one monolingual string, with the selected language or its closest available fallback.
  • The front-end should not do any language/fallback related filtering for showing labels

With available language (in English):

z3_english.png (1×1 px, 210 KB)

In Spanish:

z3_spanish.png (1×1 px, 210 KB)

Event Timeline

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

[mediawiki/extensions/WikiLambda@master] Fix getZkeyLabels so that it always returns a label

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

gengh updated the task description. (Show Details)

Change 808983 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix getZkeyLabels so that it always returns a label

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