[Commons-l] Wikimedia Outreach Project
Florian Straub
Flominator at gmx.net
Mon Sep 3 13:59:16 UTC 2007
"Magnus Manske" <magnusmanske at googlemail.com> wrote on Mon, 3 Sep 2007 13:18:31 +0100:
> On 8/30/07, Florian Straub <Flominator at 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=MediaWiki:MyLangNotify.js
>
> And one that has {{de}} and {{en}}:
> http://commons.wikimedia.org/wiki/Image:Lab_bench.jpg?withJS=MediaWiki:MyLangNotify.js
>
> 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
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the Commons-l
mailing list