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 mean something like this? http://meta.wikimedia.org/wiki/Multilingual_MediaWiki
Coming soon (Erik?) to a Wiki near you.
Paul
On 3/1/06, thomas Armstrong tarmstrong@gmail.com 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. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
Hoi, The Multilingual MediaWiki will still want you to say in your user interface what language you want. We do indeed want to bring this functionality to MediaWiki. However not every project will want this. On the talkpage of the article I think Jamesday asked if this was in order to bring all Wikipedias into one big project. That too is not what Multilingual MediaWiki intends to do. Multilingual MediaWiki allows for Wikis that need to be language aware. WiktionaryZ is one such; users will want to select the languages they want information in. This can only be done when we know what information is in what language. Other projects also have a need for multiple languages in one project, think Commons for instance. I can also imagine that projects in Wikicities want to have content in multiple languages, they would be helped with this functionality.
At this moment we envision the change of the language of the User Interface to be in the preferences. This may change when we understand better how the UI would work best.
Thanks, GerardM
admin Yellowikis wrote:
You mean something like this? http://meta.wikimedia.org/wiki/Multilingual_MediaWiki
Coming soon (Erik?) to a Wiki near you.
Paul
On 3/1/06, thomas Armstrong tarmstrong@gmail.com 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.
Erik says in the proposal:
..."When no user interface language is set, the UI language should be identical to the content language, that is, when viewing pages in English, the UI language should be English; in German, the UI language should be German, and so on. This ensures that each language community can customize the interface messages according to their needs, and emulates the current behavior of multilingual Wikimedia projects with split databases."
I guess that is what Thomas wants.
Any idea when it will be ready?
Paul
On 3/1/06, Gerard Meijssen gerard.meijssen@gmail.com wrote:
Hoi, The Multilingual MediaWiki will still want you to say in your user interface what language you want. We do indeed want to bring this functionality to MediaWiki. However not every project will want this. On the talkpage of the article I think Jamesday asked if this was in order to bring all Wikipedias into one big project. That too is not what Multilingual MediaWiki intends to do. Multilingual MediaWiki allows for Wikis that need to be language aware. WiktionaryZ is one such; users will want to select the languages they want information in. This can only be done when we know what information is in what language. Other projects also have a need for multiple languages in one project, think Commons for instance. I can also imagine that projects in Wikicities want to have content in multiple languages, they would be helped with this functionality.
At this moment we envision the change of the language of the User Interface to be in the preferences. This may change when we understand better how the UI would work best.
Thanks, GerardM
admin Yellowikis wrote:
You mean something like this? http://meta.wikimedia.org/wiki/Multilingual_MediaWiki
Coming soon (Erik?) to a Wiki near you.
Paul
On 3/1/06, thomas Armstrong tarmstrong@gmail.com 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.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
We thought we had a developer for this functionality (we do have funding), but I haven't heard back from him yet. We're therefore looking for devs who are willing to do contract work in other places. I'll post an update soonish. (PHP/MySQL devs, preferably with MediaWiki experience, should always feel free to contact me or Gerard, there's a good chance that we can get you a MediaWiki project to work on.)
Judging by the time it's taking for the namespace code to be merged, I would add 2-3 months to the period of development until you see this in a MediaWiki release. ;-) It's a Big project with a capital B in any case, since it affects MediaWiki's database structure quite seriously, and we need to implement it in a way that doesn't have a negative impact on the existing monolingual projects.
Erik
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.
At
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@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@zoomtown.com AIM: trycom2000; Jabber: mxn@myjabber.net; Blog: http://mxn.f2o.org/
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
"admin Yellowikis" > At
Users can change the interface from Deutsch to English and back.
Anyone on the list from GISWiki?
Paul
Well, it seems it's only changing from www.giswiki.de to en.giswiki.de, and it doesn't translate the pagename (and they exist) so i think it's a bad hack.
Platonides schrieb:
"admin Yellowikis" > At
Users can change the interface from Deutsch to English and back.
Anyone on the list from GISWiki?
Paul
Well, it seems it's only changing from www.giswiki.de to en.giswiki.de, and it doesn't translate the pagename (and they exist) so i think it's a bad hack.
The interface language is hard-coded. there is no translation going on.
In Giswiki the german interface uses the language of the main installation. the variables are available in the mediawiki-namespace an can be edited whitin mediawiki (http://www.giswiki.de/index.php/Spezial:Allmessages)
The english user-interface is a second mediawiki-installation. according to "highlander" - there can only be one!(language). The english userinterface gets been read from the language.php file. Changing that interface is only possible by changing that file. This is a liitle bit a Disatvantage. I often change things there. E.g. editable left menues etc...
When you are +/- not intend to change the default setting within the languageXXX.php-files the ?uselang=XXX can be used. That parameter makes sense, when a user is not logged in. But it have to be added somehow on each page.
http://en.giswiki.de/index.php/Benutzer:HeinzJ?uselang=fr
Logged in users can change the language code in their personal settings.
Of cause the pagenames do'nt get translated. Therefor (and for the translation of the whole content) you can use e.g. google's translation service. but the result is not that nice.
http://64.233.179.104/translate_c?hl=de&ie=UTF-8&oe=UTF-8&langpa...
Several variables can't have an equivalent in different language, when using one database. E.g. you must decide how images shall be described: [[Image:XXX]], [[Bild:XXX]] or [[somethingelse:XXX]]?
Thats all, adios,
Heinz
Moin,
On Monday 06 March 2006 18:43, Heinz wrote:
Platonides schrieb:
"admin Yellowikis" > At
Several variables can't have an equivalent in different language, when using one database. E.g. you must decide how images shall be described: [[Image:XXX]], [[Bild:XXX]] or [[somethingelse:XXX]]?
On a wiki I maintain both "[Bild:" and "[Image:" work perfectly to link to the same file, probably even in the same page. What am I missing?
Best wishes,
Tels
Localisation files tend to retain the English synonyms of things, to allow non-native speakers to continue to use the wiki. It also doubles up as useful when we're asked to check a bug or quirk in a wiki using a language we aren't fluent in. ;-)
Rob Church
On 06/03/06, Tels nospam-abuse@bloodgate.com wrote:
Moin,
On Monday 06 March 2006 18:43, Heinz wrote:
Platonides schrieb:
"admin Yellowikis" > At
Several variables can't have an equivalent in different language, when using one database. E.g. you must decide how images shall be described: [[Image:XXX]], [[Bild:XXX]] or [[somethingelse:XXX]]?
On a wiki I maintain both "[Bild:" and "[Image:" work perfectly to link to the same file, probably even in the same page. What am I missing?
Best wishes,
Tels
-- Signed on Mon Mar 6 18:50:42 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email.
"A Thaum is the basic unit of magical strength. It has been universally established as the amount of magic needed to create one small white pigeon or three normal-sized billiard balls." -- Terry Pratchett
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org