At the moment image description pages on our projects that are 
transcluded from Commons will be shown in English. That was no problem 
for the last four years cause the pages basically all were in English. 
But with the autotranslate template on Commons now many templates can be 
shown in any language. It would be very useful, if the transcluded pages 
on the local projects would be shown in the content language or user 
language too.

If I am not mistaken, its the function "getDescriptionRenderUrl" in 
"FileRepo.php" that gets the image description page from Commons. We 
should add "'uselang='. $wgLang->getCode()" as an additional parameter, 
so the page is rendered in the right language. (I don't know the code 
well and had only a brief look into the file, perhaps some additional 
changes are needed. The developers will know best.)

Can this be done?

Marcus Buck

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to