Page MenuHomePhabricator

[BUG] Description of "Picture of the Day" in the Explore feed not showing in app language when opened in full screen
Open, LowPublic

Description

Note: this is only occurring for some Picture of the day images. Still occurring as of v2.7.255-r-2018-02-06

Steps to reproduce

  1. Change the system language and app language to German
  2. Open the Wikipedia app and scroll down the Explore feed until you see "Bild des Tages" (Picture of the Day)
  3. Note the caption in the card is German
  4. Tap to open the card in full screen
Expected

The caption is shown in its entirety on the full screen view in German.

Actual

Since the description is retrieved from the corresponding template, and is usually too short to be displayed in its entirety, when you tap on it to read the rest, you get the English text from the file description on Commons


German Explore feed with the descriptionResult of tapping on "Image of the Day" to read the
of "Image of the Day" truncatedrest (loads the English description from Commons)

Event Timeline

Srdjan_m created this task.Mar 20 2018, 2:16 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 20 2018, 2:16 PM
Srdjan_m updated the task description. (Show Details)Mar 20 2018, 2:19 PM
RHo renamed this task from Description of "Picture of the Day" in the Explore feed can't be read fully in certain languages to Description of "Picture of the Day" in the Explore feed not showing in app language when opened in full screen.Mar 30 2018, 2:16 PM
RHo updated the task description. (Show Details)
RHo renamed this task from Description of "Picture of the Day" in the Explore feed not showing in app language when opened in full screen to [BUG] Description of "Picture of the Day" in the Explore feed not showing in app language when opened in full screen.Apr 16 2018, 4:38 PM
cooltey added a subscriber: bearND.May 16 2018, 9:32 PM

Hi @bearND
Regarding the task description, the original data of the explore feed on 03/20/2018
Explore feed API: https://de.wikipedia.org/api/rest_v1/feed/featured/2018/03/20, which returns the de description of the image.

When get image information from the API: https://de.wikipedia.org/w/api.php?action=query&format=json&formatversion=2&continue=&prop=imageinfo&iiprop=url|dimensions|mime|extmetadata&iiurlwidth=1280&titles=File:A%20Brouhot%20car%20in%20Paris,%201910.jpg, it returns the en description of the image, even it's using the de.wikipedia.org domain to fetch the data.

Does there have any other way to get correct description?

Mholloway added a comment.EditedMay 23 2018, 10:22 PM

Hmm, yeah, not so good.

What's going on here is that there are multiple possible sources of descriptions for a Commons Picture of the Day. Taking the file in the description as an example:

https://commons.wikimedia.org/wiki/File:A_Brouhot_car_in_Paris,_1910.jpg

You'll see that there is a set of descriptions under "Summary," and another set of descriptions under "Assessment." (You might have to be logged out to see all translations, otherwise you will be shown only the translation for your preferred language.) In MCS we have opted to prefer the description sets under "Assessment" since they tend to have better language coverage and in many cases are of better quality. Here's the catch: I don't think the Assessment descriptions are exposed at all via the MediaWiki API. We get them directly from the page HTML. One of the Summary descriptions is what you get in the ImageDescription item from the MediaWiki API, according to that wiki's language fallback rules.

So I guess our options here are either:

  1. Switch MCS to get descriptions from the Summary box even though there tend to be worse descriptions and fewer translations there; or
  2. Expose the Assessment descriptions in the MediaWiki API's imageinfo module, and update the app(s) to use them.

(1) will probably produce less satisfying results overall but will fix the bug and be much easier. (2) will be some work, in the API and probably also the CommonsMetadata extension, and there's the consideration that it might not be worth putting a lot of effort into imageinfo since it's slated for a rewrite Soon (TM) (see T89971: ApiQueryImageInfo is crufty, needs rewrite).

Mholloway added a subscriber: Tgr.May 23 2018, 10:26 PM
cooltey removed cooltey as the assignee of this task.May 24 2018, 8:27 PM
cooltey added a subscriber: cooltey.

Thanks, @Mholloway!

Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMar 13 2019, 3:59 PM
Jhernandez triaged this task as Low priority.Mar 13 2019, 4:00 PM
Jhernandez added a subscriber: Jhernandez.

We should understand if we have to update our code to get descriptions better from the SDC project.