[Mediawiki-l] English version

Mauro do Carmo mauro at carmo.info
Mon Oct 30 09:18:34 UTC 2006


Hi,

Let me put in another way:

I am up to lunch my English version of my site. How should I do that? 

I was thinking in creating 2 different wikis within 2 diferent folders, and with 2 diferent databases:

www.my_site.info    ==> folder  my_site.info     ==> Database      
www.en.my_site.info ==> folder  en.my_site.info  ==> Database_en   

And, after that, what I should do to link each page to its correspondent translation?

Thanks a lot, mauro.
________________________________________________
Server: MediaWiki: 1.6.8
        PHP: 4.3.11 (apache)
        MySQL: 4.1.20-max-log
        phpMyAdmin - 2.8.0.1

Client:
       Win XP Home Edition SP2
       Browser Mozila FireFox
____________________________________







|-----Original Message-----
|From: mediawiki-l-bounces at Wikimedia.org [mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Mauro
|do Carmo
|Sent: Sunday, October 29, 2006 12:16 PM
|To: 'MediaWiki announcements and site admin list'
|Subject: Re: [Mediawiki-l] Multiple wikis using same directory
|
|Thanks Zarrabeitia,
|
|So, if I understand this configuration allows us to use one folder with two different databases
|according to the url the user enter,
|right? My question is:
|
|1) What is the advantage for this configuration?
|2) What configuration the wikipedia uses for the different address it has?
|
|I am up to lunch my English version of my site, so I was wondering what would be the most appropriate
|approach. I was thinking in
|this:
|
|www.my_site.info    ==> Database      ==>site.info folder
|www.en.my_site.info ==> Database_en   ==>em.site.info folder
|
|Thanks a lot, mauro.
|________________________________________________
|Server: MediaWiki: 1.6.8
|        PHP: 4.3.11 (apache)
|        MySQL: 4.1.20-max-log
|        phpMyAdmin - 2.8.0.1
|
|Client:
|       Win XP Home Edition SP2
|       Browser Mozila FireFox
|____________________________________
|
|
|
|
|
||-----Original Message-----
||From: mediawiki-l-bounces at Wikimedia.org [mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Luis
||Zarrabeitia
||Sent: Friday, October 27, 2006 9:40 AM
||To: MediaWiki announcements and site admin list
||Subject: Re: [Mediawiki-l] Multiple wikis using same directory
||
||
||I hope you are not referring to my message "Mediawiki as a CMS." (I mean, what
||I did there was a hack, and though it worked for my (en|es).wikipedia mirror,
||I wouldn't exactly recommend it).
||
||Still, if you are referring to my hack, here it is:
||
||I installed a mediawiki in, for instance,
||/var/www/sites/wiki
||and pointed the en.wikipedia and the es.wikipedia virtualhosts to that folder.
||
||On my localsettings.php,
||
||==============
||if ($_SERVER["HTTP_HOST"]=="es.wikipedia.uh.cu")
||{
||        $db_lang="es";
||}
||if ($_SERVER["HTTP_HOST"]=="en.wikipedia.uh.cu")
||{
||        $db_lang="en";
||}
||
||$wgDBserver         = "10.6.121.29";
||$wgDBname           = "wiki";
||$wgDBuser           = "wikipedia";
||$wgDBpassword       = "wikipedia";
||$wgDBprefix         = $db_lang;
||$wgDBtype           = "mysql";
||$wgDBport           = "5432";
||
||(...)
||$wgLanguageCode = $db_lang;
||================
||
||And that seems to work. (the ifs and the $db_lang variable were added by me).
||There are some problems with the maintenance scripts in this setup (they
||obviously don't define the _SERVER variable so they don't load the
||configuration properly so I have to work around that)
||
||But given my 0 expertise with mediawiki, I'm sure there is a better way to do
||it :D
||
||Cheers,
||
||Zarrabeitia.
||
||On Friday 27 October 2006 05:48, Robert Leverington wrote:
||> Someone on here was talking about how to run multiple wikis using the
||> same wiki directory, I have a vague idea of how this could be done
||> (using a index.php file with exactly the same contents but with a
||> different name). But I don't know how I could set up the local
||> settings file. When the person said about it I think he used an if
||> statement but I don't know how to form one of those which has more
||> than two possibilities.
||>
||> Thanks,
||
||--
||Luis Zarrabeitia
||Fac. de Matemática y Computación, UH.
||http://profesores.matcom.uh.cu/~kyrie
||_______________________________________________
||MediaWiki-l mailing list
||MediaWiki-l at Wikimedia.org
||http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
||
||--
||No virus found in this incoming message.
||Checked by AVG Free Edition.
||Version: 7.1.408 / Virus Database: 268.13.13/500 - Release Date: 10/26/2006
||
|
|--
|No virus found in this outgoing message.
|Checked by AVG Free Edition.
|Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006
|
|_______________________________________________
|MediaWiki-l mailing list
|MediaWiki-l at Wikimedia.org
|http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|
|--
|No virus found in this incoming message.
|Checked by AVG Free Edition.
|Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006
|

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006
 



More information about the MediaWiki-l mailing list