Users can change the interface from Deutsch to English and back.
Anyone on the list from GISWiki?
Paul
On 3/2/06, Minh Nguyen <mxn(a)zoomtown.com> wrote:
thomas Armstrong wrote:
Hi.
I'd like to allow users to change Wiki interface's language, by clicking a link,
instead of modifying their preferences.
I've been browsing the code, and I guess I must change a property of
$wgContLang, but I don't find which one.
Any suggestion? Thank you very much.
You can tack "?uselang=xx" onto the end of the URL, where xx is the
language code, to display a particular page in xx language. So you could
create links like:
[{{fullurl:Foo|uselang=es}} Foo en espanol]
This approach has a problem, though: the change isn't permanent, so as
soon as the reader clicks on a link at the Foo page, the interface
reverts back to the default language. Perhaps you could modify
[[MediaWiki:Monobook.js]] (and all the other skin scripts) to tack the
uselang parameter onto every URL in the page.
--
Minh Nguyen <mxn(a)zoomtown.com>
AIM: trycom2000; Jabber: mxn(a)myjabber.net; Blog:
http://mxn.f2o.org/
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
--
Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica