On 10/01/07, Brianna Laugher brianna.laugher@gmail.com wrote:
Please throw your suggestions on how the current template translation could be better. Take http://commons.wikimedia.org/wiki/Template:GFDL . One click should show the GFDL message in the desired language, without bringing out a whole new page. Ideally, the template message should change to show whatever language the image in included into; {{GFDL/es}} for Spanish Wikipedia, etc. Is it possible? Or does it require complicated changes to MediaWiki?
Sounds like it might be possible in a similar form using the Multilang extension, if it's tweaked up a bit; I adapted Arnomane's work into something that behaves a little more like Cite (multiple blocks of <language code="en">Some text</language> for instance, with a <multilang /> for output) - the latter uses the language preference.
The extension works and is currently cache compatible, at least - I've checked that version into Subversion. It needs some tweaking; I used a bit of a dirty hack to get the language preference, when I'd rather that was just in the ParserOptions with a simple accessor. Also, the problem where parser hook extensions are returning a lot of extraneous whitespace is a bit of an issue here, since we're getting some hideous blank lines where the <language> tags were, and then the content where the <multilang /> tag is.
Rob Church