"Magnus Manske" magnusmanske@googlemail.com wrote on Mon, 3 Sep 2007 13:18:31 +0100:
On 8/30/07, Florian Straub Flominator@gmx.net wrote:
What about a javascript thingie that matches the language templates of
the currently viewed image and the language code of the browser and asks for translation? Magnus?
Sorry, I was on vacation :-) There ya go: http://commons.wikimedia.org/wiki/MediaWiki:MyLangNotify.js
Try it with an image that has no language tags: http://commons.wikimedia.org/wiki/Image:Ljustorpsfiskare.jpg?withJS=MediaWik...
And one that has {{de}} and {{en}}: http://commons.wikimedia.org/wiki/Image:Lab_bench.jpg?withJS=MediaWiki:MyLan...
If your user language is in the description, it will emphasize your language by increasing the font size. If not, it will (not so) kindly ask you to add a description in your language (see the page heading). This works only on image pages.
Awesome as always :)
What about reading the language of the browser?
Also I would like to have an even more aggressive alert()-message. Would that work as well?
regards,
Flo