Andy Triboletti wrote:
I want to setup internationalization for my site
wannawiki.com,
preferably like wikipedia does it with the subdomains. How can I do
this using 1 install of mediawiki?
You need a separate database (or set of prefixed tables within a
database) for each wiki.
A single source code installation can be shared between all wikis,
however. The short answer is that your LocalSettings.php should
conditionally select different settings for each site.
For subdomains for instance, you'd check $_SERVER['HTTP_HOST'] and
select the proper language, database, uploads directory, etc for the
site. (You'd probably use a <VirtualHost> with something like
ServerAlias *.wannawiki.com. Alternatively you could set up separate
virtual hosts and document roots for each, using symbolic links on the
filesystem to keep them all in sync.)
(For managing many sites, a SiteSettings.php helper script is available.
It's not particularly well documented, sorry.)
-- brion vibber (brion @
pobox.com)