Last modified: 2014-07-17 19:15:35 UTC
Steps to reproduce: *Go to https://test.wikipedia.org/wiki/File:SystemLanguage_test.svg *Click on one of the images in the "Other version" section of the description (not the english one) *Expected behaviour: MediaViewer shows the image in the correct language *Actual behaviour: MediaViewer shows image in english At the moment there's only a very small number of such images ([[commons:Category:Translation_possible_-_SVG_(switch)]]), so probably not a big deal initially, but its possible such images will take off in the future. Other formats might have other parameters that are important (PDF/DjVu page comes to mind), it would be nice if we could somehow support extra parameters just in general.
Blocker: There is no API module for this. See https://gerrit.wikimedia.org/r/25838 - either Harry forgot to add it or it was deemed not useful. There is no way to get a language-specific thumb URL as far as I can see.
PDF pages are supported via iiurlparam, as a hint - image language could be supported the same way.
(In reply to comment #2) > PDF pages are supported via iiurlparam, as a hint - image language could be > supported the same way. It should already be. The implementation of that is generic for all media handlers
http://commons.wikimedia.org/w/api.php?action=query&titles=File:Gerrit%20patchset%2025838%20test.svg&prop=imageinfo&iiprop=url&iiurlwidth=300&iiurlparam=langde-300px That's super annoying to discover. i.e. impossible to discover. Documentation fail. Bug 1 etc. etc. It should be possible to look for extra params and just pass them to the iiurlparam parameter. I think. Probably. I'm not totally convinced that the thumb URL will always be exactly the same, but in most cases it will, so let's go with it!
(In reply to comment #4) > http://commons.wikimedia.org/w/api.php?action=query&titles=File: > Gerrit%20patchset%2025838%20test. > svg&prop=imageinfo&iiprop=url&iiurlwidth=300&iiurlparam=langde-300px > > That's super annoying to discover. i.e. impossible to discover. Documentation > fail. Bug 1 etc. etc. Indeed it really is. It was originally a hack to make instant commons work. It is totally and utterly undiscoverable. > It should be possible to look for extra params and just pass them to the > iiurlparam parameter. I think. Probably. I'm not totally convinced that the > thumb URL will always be exactly the same, but in most cases it will, so > let's > go with it! It should always be the same.
https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/245
See also bug 58920, which quibbles with the desired semantics of 'systemLanguage'.
*** Bug 68154 has been marked as a duplicate of this bug. ***
I think this actually works now (with thumbnail guessing, although not with thumbnails requested via the API), and the mixing of the languages is due to bug 62039.