Difference between revisions of "Mediawiki Extension MultiLanguageManager"
m (Type fault correction) |
m (Text replacement - "[{{fullurl:{{FULLPAGENAMEE}}|action=mpdf}} Download this page as PDF]" to "") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <!-- Template Infobox Generic--> | |
− | <!-- Template Infobox | + | {{Template:Class-Infobox-Generic<!-- ALL MUST BE FILLED IN --> |
− | {{Template | ||
|image = <!-- If an logo is required, enter the link here --> | |image = <!-- If an logo is required, enter the link here --> | ||
− | |Source = | + | |Section = [[Section::{{PAGENAME}}]] |
− | | | + | |Source = [[Source::DataSource]] <!-- [[Source::DataSource]], [[Source::Query]] ... --> |
− | | | + | |Language = [[Language::English]] <!-- [[Language::English]], [[Language::Français]], [[Language::Nederlands]] --> |
− | | | + | |Topic = [[Topic::Mediawiki]] <!-- [[Topic::Mediawiki]], [[Subject::Microsoft]], ... --> |
− | |DocumentType = [[DocumentType:: | + | |SubTopic = [[SubTopic::Mediawiki Extension]] <!-- [[SubTopic::Mediawiki Extension]], [[SubTopic::Office 365]] , ... --> |
− | |LastEditBy = [[LastEditBy::{{REVISIONUSER}}]] | + | |DocumentType = [[DocumentType::Documentation]] <!-- [[DocumentType::User Guide]], [[DocumentType::Procedure]], [[DocumentType::Script]], [[DocumentType::Gallery]], ...--> |
− | |LastEdit = [[LastEdit::{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}]] | + | |LastEditBy = [[LastEditBy::{{REVISIONUSER}}]] |
− | | | + | |LastEdit = [[LastEdit::{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}]] |
+ | |Status = [[Status::Active]] <!--[[Status::Active]] [[Status::Development]] [[Status::Obsolete]] [[Status::Archived]] [[Status::To Delete]]--> | ||
+ | |Access = [[Access::free]] <!--[[Access::free]] [[Access::Private]] [[Access::Subscription]] --> | ||
+ | <!-- Template version 1.01 --> | ||
}} | }} | ||
− | <!-- End of Template Infobox | + | <!-- End of Template Infobox Generic--> |
== Description == | == Description == |
Latest revision as of 13:56, 14 April 2021
Source: | DataSource |
---|---|
Language: | English |
Topic: | Mediawiki |
SubTopic: | Mediawiki Extension |
Last Edit By: | DochyJP |
LastEdit: | 2021-04-14 |
Document type: | Documentation |
Status: | Active |
Access: | free |
Description
The MultiLanguageManager extension allows you to add multi-languages capacities to a wiki:
- You can define a list of available languages
- You can define a page to be a variant of another page within the same wiki
- On a page with variants a special navigation will be displayed ("flags") that allow to switch between those pages
- The interface language for anonymous users will automatically be changed to match the language of the page
ATTENTION : This extension does not use the built-in Page content language mechanism of MediaWiki.
Installation
Download
Download and place the file(s) in a directory called MultiLanguageManager in your extensions/ folder.
Activation
Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'MultiLanguageManager' );
Run the update script which will automatically create the necessary database tables that this extension needs.
Configuration
Available languages
The configuration is done using the $mgAvailableLanguage variable which contains the code of language and the code of its name in the file MultiLanguageManager_setup.php.
$mgAvailableLanguage = array( 'en' => 'multilanguagemanager_en', 'fr' => 'multilanguagemanager_fr' );
User rights
You can manage who has the rights to modify the linguistic parameters of the pages. You can set those users rights to match with an existing right using the $mgLanguagePermisionsKey variable . For example to set the linguistic rights to match the edition article rights:
$mgLanguagePermisionsKey = 'edit';
But you could also choose an other rights : language :
$mgLanguagePermisionsKey = 'language';
Then think of set the rights according to the groups:
$wgGroupPermissions['*'][$mgLanguagePermisionsKey] = false; $wgGroupPermissions['user'][$mgLanguagePermisionsKey] = true; $wgGroupPermissions['sysop'][$mgLanguagePermisionsKey] = true;