Hi Laurie,
We have tried to do something similar on Yellowikis - but haven't ever found a good solution.
At the moment our users have to log-on and change the language displayed in the User Interface in their preferences.
It might be possible to run a wiki in each language and use the XML from the Atom feed to allow changes to flow though the system - but it doesn't seem a particularly efficient way to do this (particularly as the database grows) and is outside my (limited) technical competence.
There was an experimental system at WikiPage.de run by User:Gangleri that allowed non-logged in users to select from a list of different UI languages - but it doesn't seem to be working anymore.
Best wishes
Paul -- Yellowikis is to Yellow Pages, as Wikipedia is to The Encyclopedia Britannica
On 12/11/05, Laurie Lewis ldlewis@swiftdsl.com.au wrote:
Ok,
Still having some problems with this so an outline of what I have done and what I am getting.
- Created directory /wiki
Created Sub directory /wiki/files and put all MediaWiki files
into this directory 3. Created dir /wiki/en and /wiki/es and /wiki/da 4. Made symbolic links of ALL directories (excluding config) to /wiki/files 5. Made symbolic links to all other files in /wiki/files 6. pointed browser at http://domain/wiki/en 7. configured for English and moved Localsettings and worked fine 8. Did same for Spanish and Danish
Tried to go to English site and just get Danish language all the time and same with Spanish.
System is also using eaccelerator and each wiki configured to take advantage of it.
All wiki's using the same database but have language extensions added en_ da_ es_.
It is my intention to create a CommonSettings.php file and put an include into the LocalSettings.php file. In the CommonSettings.php file I will probably move nearly everything from LocalSetting except language settings and IP variable. Will also add the following;-
I am going to add the following line to each ########Added by me to see if multi languages work $wgInterwikiMagic = true;
OK first - can anyone tell me why the wiki's are all using the same language - obviously a symbolic link is not appropriate for a file or directory - any ideas.
Second - Have a missed anything else to configure a Multilanguage wiki - All the wikis are dealing with the same topic.
Thanks
Laurie
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rob Church Sent: Thursday, 8 December 2005 6:40 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Multiple languages
You can add multiple wikis to the same database using the $wgDBprefix directive in LocalSettings.php. For instance, you might have the following snippets:
$wgSitename = "English Wiki"; $wgDBprefix = "en_"
and
$wgSitename = "French Wiki"; $wgDBprefix = "fr_"
You'd put one in the LocalSettings.php for English, for example, and one in the French. They would use the same database, but different tables. Sharing users and other items wouldn't be possible with that method, however - although you could read on Meta (http://meta.wikimedia.org) and http://www.mediawiki.org for information on the _experimental_ shared database feature.
You're right about having subdirectories; each wiki would need it's own LocalSettings.php file. You could, with a little bit of work, place common software files in a directory above each language, then include a lot of files at the start, however that's a bit extra work.
Rob Church
On 08/12/05, Laurie Lewis ldlewis@swiftdsl.com.au wrote:
I have seen how to do sub-pages with the language code either at the front/middle or back, but this will not allow the sidebar to change as the languages change - at least I have not been able to figure out how to do this.
The second option you talk of is multiple wiki's. Not sure how to do this on the one domain but this is my best guess - pointing in the
right
direction would be good.
Create a subdirectory off the main wiki page for each language
et /fr 2. Copy LocalSettings.php to that directory and change the following:- $wgLanguageCode = "en";
Not sure here what else might need to be changed.
In this way every language will use the same database have the same
user
base etc. It will also mean that if you create a page that exists in another language that it will show as existing and not as a new page.
Heck, Can anyone step me through it? Not confident after thinking about it a bit more.
laurie
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rob Church Sent: Thursday, 8 December 2005 7:11 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Multiple languages
To have multiple pages of the same content in different languages, either separate wikis are required, or you could do something with subpages, e.g. http://www.foo.com/wiki/Page/en, /wiki/Page/fr, etc...
Rob Church
On 07/12/05, Laurie Lewis ldlewis@swiftdsl.com.au wrote:
Ok,
Perhaps I need to provide a bit more information on where I am up
to.
Using Mediawiki 1.5.3. I have setup 1 mysql database with no
extensions
being used.
I am at this time trying to determine how best to set up a multi-language wiki. I have been able to go into the interwiki
database
and add the language codes for the additional languages. Eg. nl http://nl.wiki.phpgedview.net/index.php?title=$1 1
Not quite sure what the 0 or 1 means in the iw_local field.
I have figured out that I need to include $wgInterwikiMagic = true;
into
my LocalSettings.php if I want the language codes to come up as XX.website.com/index... I have also seen that you can put the
language
code either before or after the $1 variable in the interwiki
database
to
change where the language code comes up.
What I imagined would happen is that when you selected a different language that you would be able to edit the sidebar for each one
somehow
like I do for the default language (MediaWiki:Sidebar). I have also read somewhere that you need multiple databases for running multiple languages. This site is basically designed to be one document replicated into a number of languages.
Sorry but I am VERY new to all this and can not find an easy step through anywhere let alone a hard one.
I could also not find the work sidebar at all in Languagesxx.php
file.
Laurie
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rob Church Sent: Thursday, 8 December 2005 1:11 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Multiple languages
What you should be able to do is edit the appropriate LanguageXX.php file, find the entry for 'sidebar', and edit that as appropriate.
When
a user selects a language other than the default, you should find
the
interface loads from that language file, and the sidebar should hopefully update.
Rob Church
On 07/12/05, Laurie Lewis ldlewis@swiftdsl.com.au wrote:
I am very new to wiki's and I am trying to set up a multiple
language
one. I can not get the sidebar to change to the appropriate
languages
etc when you select them.
Can anyone help me with a simple set through of what I should do
please.
Laurie
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l