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
(
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(a)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.
1. 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(a)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(a)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(a)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(a)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(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l