Page MenuHomePhabricator

[Spike 4 hour] [BUG] MediaViewer ignores thumbnail options when using API provider for thumbnails
Open, MediumPublicSpike

Description

Steps to reproduce:

  1. Got to https://de.wikipedia.beta.wmflabs.org/wiki/SVG-Test
  2. The SVG uses no lang parameter, so since T205040: Show SVGs in page language if available it is shown in the content language, here in German.
  3. Click the image, wait until MMV has finished loading.

Expected: The image in MMV should be in German, too.
Actual: It's in English.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Niharika renamed this task from MMV should show SVGs in language of the page, not English to [BUG] MMV should show SVGs in language of the page, not English.Nov 2 2018, 7:51 PM
Niharika moved this task from New & TBD Tickets to Needs Discussion on the Community-Tech board.
Tgr renamed this task from [BUG] MMV should show SVGs in language of the page, not English to [BUG] MediaViewer ignores thumbnail options when using API provider for thumbnails.Nov 2 2018, 8:30 PM
Tgr reopened this task as Open.

Actually a different bug from T60663: media viewer doesn't preserve thumbnail options like svg language (which seems to have been fixed somewhere along the line, at least for SVGs) - the URL guessing provider (mmv.provider.GuessedThumbnailInfo.js) preserves the language but the API-based provider does not. So language detection would work in Wikimedia production but not on most other wikis.

Niharika renamed this task from [BUG] MediaViewer ignores thumbnail options when using API provider for thumbnails to [Spike 4 hour] [BUG] MediaViewer ignores thumbnail options when using API provider for thumbnails.Nov 21 2018, 12:50 AM
Niharika moved this task from Needs Discussion to Up Next (May 6-17) on the Community-Tech board.
Niharika edited projects, added SVG Translate Tool; removed Community-Tech.
Restricted Application changed the subtype of this task from "Task" to "Spike". · View Herald Transcript