Page MenuHomePhabricator

Labels for EntitySchemas do not use Language fallback
Closed, ResolvedPublic

Description

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

Problem:
We currently have no support for language fallback for Entity Schemas. We should have it for the label at the top of the page and in the page title.

Example:
https://www.wikidata.org/wiki/EntitySchema:E2?uselang=zh has no label in zh at the time of this writing but does have a label in en. That should be shown.

Screenshot:

Screenshot.png (412×895 px, 46 KB)

BDD
GIVEN an Entity Schema page
AND no label in interface language
AND label in a fallback language from the interface language
WHEN viewing the Entity Schema page
THEN the schema's label is shown in the fallback language in the header of the Entity Schema and in the HTML title of the page

Note: "没有定义标签 " means "No label defined"

Acceptance criteria:

  • Language fallback are applied on Entity Schema pages.
  • Language fallbacks on Entity Schema pages follow the same fallback chain as on Item and Property pages.
  • A label from a fallback language is indicated in the same visual way as on Item and Property pages.

Event Timeline

Arian_Bozorg renamed this task from Language fallback in EntitySchema to Language fallback on EntitySchema pages.Feb 24 2023, 10:33 AM
Arian_Bozorg updated the task description. (Show Details)
karapayneWMDE claimed this task.

@Arian_Bozorg , this appears to be a duplicate of https://phabricator.wikimedia.org/T330491 and so I'm resolving it

karapayneWMDE renamed this task from Language fallback on EntitySchema pages to Labels for EntitySchemas do not use Language fallback.Dec 13 2024, 11:03 AM
karapayneWMDE triaged this task as Medium priority.
karapayneWMDE updated the task description. (Show Details)

Change #1109022 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/EntitySchema@master] Add fallback language support to EntitySchema page headings

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

Change #1109677 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/EntitySchema@master] Add fallback language support to EntitySchema page headings

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

Change #1109022 abandoned by Arthur taylor:

[mediawiki/extensions/EntitySchema@master] Add fallback language support to EntitySchema page headings

Reason:

Abandoned in favour of I16f962fbb658702cf2476b4813836e96e55c4931

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

Change #1111939 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/EntitySchema@master] Strip fallback indicator from HTML page titles

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

Change #1111942 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] [WIP] Strip fallback indicator

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

Change #1111942 abandoned by Arthur taylor:

[mediawiki/extensions/Wikibase@master] [WIP] Strip fallback indicator

Reason:

Not needed - decided for another approach.

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

Change #1109677 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Add fallback language support to EntitySchema page headings

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

Change #1111939 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Strip fallback indicator from HTML page titles

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