Page MenuHomePhabricator

shared-image-desc must have lang and dir attributes that match the wiki that hosts the shared image
Open, LowPublic

Description

shared-image-desc is brought from a site that may have a language that is different from the wiki on which it is viewed. In the Arabic Wikipedia, for example, this causes the description show up in the wrong direction. lang and dir attributes must be set according to the language of the wiki that hosts the image. In the case of Wikimedia Commons it's en/ltr, but this can be different for other wiki families.

Event Timeline

Amire80 created this task.Apr 13 2015, 12:56 PM
Amire80 raised the priority of this task from to Low.
Amire80 updated the task description. (Show Details)
Amire80 added subscribers: Amire80, TheDJ, Arrbee and 6 others.
TheDJ added a comment.Apr 13 2015, 5:40 PM

This problem runs VERY VERY deep.

The description is fetched by File::getDescriptionText(), which basically just calls action=render on the other repo, passing the current content language as a uselang= param.

https://commons.wikimedia.org/wiki/File:Example.png?action=render&uselang=he

This sort of works, sort of doesn't, since some content on Commons is written to properly use the {{int:}} magic word and adds the appropriate annotations by itself, but most of it isn't. And worse, the render tag doesn't give you the information for the 'default' (fallback).

This whole process also needs to stay somewhat stable due to InstantCommons.

Amire80 moved this task from Backlog to Multimedia on the RTL board.Jul 16 2015, 3:19 PM
Restricted Application added subscribers: Steinsplitter, Matanya. · View Herald TranscriptJul 16 2015, 3:19 PM
Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 5:52 PM
Amire80 moved this task from Untriaged to RTL on the I18n board.Feb 28 2018, 12:27 PM
Restricted Application added a project: Commons. · View Herald TranscriptFeb 28 2018, 12:27 PM