Page MenuHomePhabricator

Handle language fallback chain consistently in Statement UI
Closed, ResolvedPublic

Description

If a qualifier label is not available in a user's language (as defined by their language fallback chain), we are displaying the wb-language-fallback-indicator markup that is returned from Wikibase. This is a superscript element which displays the language that the label being shown is written in.

This behavior should also be applied to the following UI elements:

  • Top-level property for a given StatementsPanel
  • Entity label for a given statement within this panel (the ItemWidget element)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Ramsey-WMF and @PDrouin-WMF, I've language-indicatored all the things – let me know if this looks right to you:

Screen Shot 2019-08-07 at 10.49.46 AM.png (608×1 px, 103 KB)

Change 528902 had a related patch set uploaded (by Eric Gardner; owner: Eric Gardner):
[mediawiki/extensions/WikibaseMediaInfo@master] Handle language fallback chain consistently in Statement UI

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

Change 528902 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Handle language fallback chain consistently in Statement UI

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

Tested on production (on mobile too!). Works.