Page MenuHomePhabricator

[ES-M3] Language fallback for EntitySchemas in statements
Closed, ResolvedPublic8 Estimated Story Points

Description

As an editor I want to see the Label of an EntitySchema in a fallback language when it is referenced in a statement 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 in statements. We should show the label in a language fallback wherever it is referenced to help with legibility.

BDD
GIVEN an EntitySchema referenced in a statement
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 statements that reference EntitySchemas
  • 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 Notes:

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 952883 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Use LanguageFallbackIndicator in EntitySchemaFormatter

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

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 952883 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Use LanguageFallbackIndicator in EntitySchemaFormatter

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

Change 952884 merged by jenkins-bot:

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

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

  NODES
Note 4
Project 4
todo 2