Page MenuHomePhabricator

Images is not included in rendered PDF documents if wiki page uses localized name for the File namespace
Closed, ResolvedPublic

Description

Author: byrial

Description:
In the Danish (da:) Wikipedia, if you use the "Download as PDF" function, images included in wiki pages is only included in the rendered PDF file if the English version of the file namespace name is used (as in [[File:some-file.jpg]]).

If images is included using a localized Danish namespace name ([[Fil:some-file.jpg]] or [[Billede:some-file.jpg]]), the image will not be in the rendered PDF file.


Version: master
Severity: major

Details

Reference
bz46314

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:29 AM
bzimport added projects: Collection, I18n.
bzimport set Reference to bz46314.
bzimport added a subscriber: Unknown Object (MLST).

On the German (de:) Wikipedia, images are included, even if you use localized namespaces ([[Datei:some-file.jpg]] works). But the localized variants of "thumb" are ignored. I'm adding this report here, as it seems highly related.

See https://de.wikipedia.org/w/index.php?title=Wikipedia:Spielwiese&oldid=115878104 Both images look the same in the wiki page, the first uses "thumb", the second "miniatur" (which is one of the German localizations for thumb). In the PDF only the first is rendered correctly, the second is included in full size. I'm raising the severity to major, as this affects about 50% of all images in de.wikipedia.

volker.haas wrote:

Thanks for pointing out this issue - we have fixed the problem and updated the software on the render servers - everything should work as expected again.

https://github.com/pediapress/mwlib/commit/61f285aded60523750fa3fb41d1113d4c1fe6b94