On 04/04/07, Umidjon Rahmonberdiev u.rahmonberdiev@cgiar.org wrote:
Is that possible to use Multilanguage feature in single wiki project, or it is a "must" to have a multiple wiki projects installed for every language used?
MediaWiki "out of the box" contains no special support for storing content in multiple languages in the same wiki; it assumes that all content is in the same language, although the user interface language can be set according to users' preferences.
There are various schemes in use to provide varied content languages, ranging from subpages (e.g. "Subject/en", "Subject/fr", etc.) and different namespaces per language ("English:Subject", "French:Subject") to the more usual choice, which is to establish different logical wikis (separate databases, or different table prefixes in the same database - the code itself can be shared to reduce maintenance hassle), often on separate subdomains or in different directories.
One example of using the "subpage" method can be found on our own web site, MediaWiki.org, e.g. http://www.mediawiki.org/wiki/MediaWiki contains the main page in English; a navigation template (which uses some parser function cleverness to determine which translations exist, and so which links to show) at the bottom provides links to the same page in other languages, e.g. http://www.mediawiki.org/wiki/MediaWiki/fr for the French version.
A classic example of the multiple databases, multiple subdomains approach, of course, is the Wikimedia setup; the English Wikipedia, for instance, is available at http://en.wikipedia.org, whereas the French Wikipedia is at http://fr.wikipedia.org.
At this time, there are several variants of a "Multilang" extension available, some of which work, some of which are experimental and might not work at present. You could investigate these as a further option, although I would discourage it as being a more complex route from the point of view of editors. There are also some new extensions regarding the language issue in Subversion, which might be worth examining for useful functionality.
Overall, the exact method you choose really depends on what's best for you (in terms of technical ability or availability, e.g. of a flexible configuration for databases and subdomains, which typical shared/commercial hosting packages often limit, not to mention maintenance), as well as what you consider easiest to understand and use for your editors and, of course, readers.
Rob Church
Thanks Rob for you comprehensive answer.
If I decide to use multiple media wiki engines (like en.mysite.org, ru.mysite.org) for different languages, is it possible to use a single user authentication some how?
Best regards,
Umidjon B. Rahmonberdiev
NINP, Web Manager, CACAARI P.O. Box 4564,6, Murtazaev St., Tashkent 700000, Uzbekistan Tel.: (998-71) 137-21-30/69; Fax: (998-71) 120-71-25 E-mail: u.rahmonberdiev@cgiar.org WWW: http://www.cacaari.org
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of Rob Church Sent: Wednesday, April 04, 2007 12:05 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] multilanguage in single project
On 04/04/07, Umidjon Rahmonberdiev u.rahmonberdiev@cgiar.org wrote:
Is that possible to use Multilanguage feature in single wiki project, or
it
is a "must" to have a multiple wiki projects installed for every
language
used?
MediaWiki "out of the box" contains no special support for storing content in multiple languages in the same wiki; it assumes that all content is in the same language, although the user interface language can be set according to users' preferences.
There are various schemes in use to provide varied content languages, ranging from subpages (e.g. "Subject/en", "Subject/fr", etc.) and different namespaces per language ("English:Subject", "French:Subject") to the more usual choice, which is to establish different logical wikis (separate databases, or different table prefixes in the same database - the code itself can be shared to reduce maintenance hassle), often on separate subdomains or in different directories.
One example of using the "subpage" method can be found on our own web site, MediaWiki.org, e.g. http://www.mediawiki.org/wiki/MediaWiki contains the main page in English; a navigation template (which uses some parser function cleverness to determine which translations exist, and so which links to show) at the bottom provides links to the same page in other languages, e.g. http://www.mediawiki.org/wiki/MediaWiki/fr for the French version.
A classic example of the multiple databases, multiple subdomains approach, of course, is the Wikimedia setup; the English Wikipedia, for instance, is available at http://en.wikipedia.org, whereas the French Wikipedia is at http://fr.wikipedia.org.
At this time, there are several variants of a "Multilang" extension available, some of which work, some of which are experimental and might not work at present. You could investigate these as a further option, although I would discourage it as being a more complex route from the point of view of editors. There are also some new extensions regarding the language issue in Subversion, which might be worth examining for useful functionality.
Overall, the exact method you choose really depends on what's best for you (in terms of technical ability or availability, e.g. of a flexible configuration for databases and subdomains, which typical shared/commercial hosting packages often limit, not to mention maintenance), as well as what you consider easiest to understand and use for your editors and, of course, readers.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
2007/4/4, Rob Church robchur@gmail.com:
There are also some new extensions regarding the language issue in Subversion, which might be worth examining for useful functionality.
I installed this Multilang manually, but i don't know how to use it in wiki. Is there anywhere a description?
Armin
On 05/04/07, Armin Kniesel armin.kniesel@googlemail.com wrote:
I installed this Multilang manually, but i don't know how to use it in wiki. Is there anywhere a description?
The version of Multilang in Subversion is experimental, and doesn't have documentation, but the basic gist of it is:
<language code="en">Text in English.</language> <language code="fr">Text in French.</language> <multilang />
The <multilang /> tag is replaced with an appropriate <language> block; if a block in the user's current language preference is available, then that's used, otherwise the content language (if available). If neither of those are available, then it falls back to the first available language block defined.
If a <language> tag doesn't have a "code" attribute, then it will be ignored.
Rob Church
I am setting up MW 1.9.3 in the next several days for English, Italian and Spanish as follows:
New en, it and es folders off the /wiki folder. A copied LocalSettings.php file in each sub folder. New tables in the database with different prefixes; en_, it_ and es_. The new LocalSettings.php files edited to look at these new tables.
Apache aliases to ensure domain.com/it/Milano refers to the index.php in the mother folder (/wiki). This in turn will use the /it LocalSettings.php for the Italian wiki.
I will post results as they are available but in theory this should allow multiple languages on a single MW installation with distinct wikis. This removes issues with version control and extension management.
To give credit where credit is due this configuration came from Jim Wilson.
Paul
On 4/5/07 4:47 PM, "Rob Church" robchur@gmail.com wrote:
On 05/04/07, Armin Kniesel armin.kniesel@googlemail.com wrote:
I installed this Multilang manually, but i don't know how to use it in wiki. Is there anywhere a description?
The version of Multilang in Subversion is experimental, and doesn't have documentation, but the basic gist of it is:
<language code="en">Text in English.</language> <language code="fr">Text in French.</language>
<multilang />
The <multilang /> tag is replaced with an appropriate <language> block; if a block in the user's current language preference is available, then that's used, otherwise the content language (if available). If neither of those are available, then it falls back to the first available language block defined.
If a <language> tag doesn't have a "code" attribute, then it will be ignored.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
To give credit where credit is due this configuration came from Jim
Wilson.
Thanks for the shout-out, Paul!
For those of you who plan to run HEAD from subversion - you'll also want to consider tuplicating the AdminSettings.php file and figuring out an easy way to batch execute the maintenance scripts.
-- Jim R. Wilson (jimbojw)
On 4/5/07, Paul Coghlan pcoghlan@usa.net wrote:
I am setting up MW 1.9.3 in the next several days for English, Italian and Spanish as follows:
New en, it and es folders off the /wiki folder. A copied LocalSettings.php file in each sub folder. New tables in the database with different prefixes; en_, it_ and es_. The new LocalSettings.php files edited to look at these new tables.
Apache aliases to ensure domain.com/it/Milano refers to the index.php in the mother folder (/wiki). This in turn will use the /it LocalSettings.php for the Italian wiki.
I will post results as they are available but in theory this should allow multiple languages on a single MW installation with distinct wikis. This removes issues with version control and extension management.
To give credit where credit is due this configuration came from Jim Wilson.
Paul
On 4/5/07 4:47 PM, "Rob Church" robchur@gmail.com wrote:
On 05/04/07, Armin Kniesel armin.kniesel@googlemail.com wrote:
I installed this Multilang manually, but i don't know how to use it in
wiki.
Is there anywhere a description?
The version of Multilang in Subversion is experimental, and doesn't have documentation, but the basic gist of it is:
<language code="en">Text in English.</language> <language code="fr">Text in French.</language>
<multilang />
The <multilang /> tag is replaced with an appropriate <language> block; if a block in the user's current language preference is available, then that's used, otherwise the content language (if available). If neither of those are available, then it falls back to the first available language block defined.
If a <language> tag doesn't have a "code" attribute, then it will be
ignored.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Paul,
I will wait until you get final results - please, log everything step-by-step - if you success, it could be a great tutorial "How to set up Multi-language feature in single Media wiki project".
Best regards,
Umid
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- bounces@lists.wikimedia.org] On Behalf Of Paul Coghlan Sent: Friday, April 06, 2007 1:55 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] multilanguage in single project
I am setting up MW 1.9.3 in the next several days for English, Italian and Spanish as follows:
2007/4/5, Rob Church robchur@gmail.com:
<language code="en">Text in English.</language> <language code="fr">Text in French.</language>
<multilang />
Is there anything more to set up? In Localsettings i added require_once("extensions/Multilang.php"); but it is still not working.
mediawiki-l@lists.wikimedia.org