On Thu, Jan 22, 2009 at 6:20 PM, Marcus Buck wiki@marcusbuck.org wrote:
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
Should be pretty doable. As long as we keep caching the description pages heavily (as we do now), it shouldn't be a problem. Would just need to tweak the cache key to include the specified language as well.
-Chad