Page MenuHomePhabricator

Make the default language behaviour in caption display/editing the same as wikidata (for babel)
Closed, ResolvedPublic

Description

If the user has babel set up then the languages that they are shown, and the way they're edited, is not the same in MediaInfo as on wikidata. Make it be the same

AFAICS these are the rules on wikidata:

Caption language ordering:

  1. Show a caption for the interface language of the page (whether or not it has a value)
  2. If there is no caption for the interface language, show the first caption in the fallback chain that has a value (if any)
  3. If the logged-in user has Babel languages, and they haven’t already been shown, then show captions for all of them next, whether or not they have values
  4. Show everything else with a value

Caption language display:

1 and 2 will be visible on page load
3 will be made visible on js completion
1, 2 and 3 are always shown
4 will be hidden by default, and can be shown/rehidden with a click

Related Objects

Event Timeline

Change 475316 had a related patch set uploaded (by Jforrester; owner: Cparle):
[mediawiki/extensions/WikibaseMediaInfo@master] Display captions block immediately after the file links, before the wikitext content

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

Change 475316 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Display captions block immediately after the file links, before the wikitext content

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