Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

[ES-M3] Language fallback for EntitySchemas on Special pages
Closed, ResolvedPublic8 Estimated Story Points

Description

As an editor I want to see the Label of an EntitySchema in a fallback language wherever it is referenced on a Special page if it is not available in my interface language in order to have a chance of understanding what the EntitySchema is about.

Problem:
We currently have no support for language fallback for EntitySchemas when it is referenced on Special pages. We should show the label in a language fallback wherever it is referenced to help with legibility.

Example:

BDD
GIVEN an EntitySchema page
AND a reference on a Special page
AND no label in interface language
AND label in a fallback language from the interface language
WHEN viewing a reference to an EntitySchema
THEN the EntitySchema's label is shown in the fallback language

Acceptance criteria:

  • Language fallbacks are applied to references of EntitySchemas on Special pages
  • Language fallbacks follow the same fallback chain for references to Items and Properties
  • A label from a fallback language is indicated in the same visual way as for references to Items and Properties

Event Timeline

Task Breakdown Note

  • see T214885 where Label support was initially implemented, to find the relevant areas of the code.

A label from a fallback language is indicated in the same visual way as for references to Items and Properties

That is to say, not at all? Compare AllPages?uselang=de-at:

image.png (816×1 px, 202 KB)

(I just want to confirm – I didn’t realize it before either, but we’re not actually showing any indicator here. Some of these items definitely don’t have German labels.)

Change 952244 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Use language fallback in LabelLookup

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

Change 952322 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Improve HTML formatting in HtmlPageLinkRendererEndHookHandler

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

Change 952884 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Replace EntitySchemaTerm with TermFallback from Wikibase

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

Change 952244 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Use language fallback in LabelLookup

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

Change 952322 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Improve HTML formatting in HtmlPageLinkRendererEndHookHandler

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

Change 952884 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Replace EntitySchemaTerm with TermFallback from Wikibase

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