Extension:MultiLanguageManager

Category:Unmaintained extensions#MultiLanguageManager Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
MultiLanguageManager
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Database Category:Database extensions, Locale Category:Internationalization extensions
Description Add multi-languages capacities to a wiki
Author(s) Marc Despland, Robert Vogel
Latest version 2.0 (2017-08-31)
MediaWiki 1.29Category:Extensions with manual MediaWiki version
Database changes Yes
License GNU General Public License 2.0
Download Category:Extensions in Wikimedia version control
  • $mgAvailableLanguage
  • $mgLanguagePermisionsKey
Quarterly downloads 0
Translate the MultiLanguageManager extension if it is available at translatewiki.net
Category:All extensions

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. If that is desired, use the PerPageLanguage extension.

Installation

  • Download and move the extracted MultiLanguageManager folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiLanguageManager
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'MultiLanguageManager' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

Available languages

The configuration is done using the $mgAvailableLanguages variable which contains the code of language and the code of its name in the file MultiLanguageManager_setup.php.

$mgAvailableLanguages = array(
   'en',
   'fr'
);

The users 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;

See also

Category:All extensions Category:ArticleDelete extensions Category:BeforePageDisplay extensions Category:Database extensions Category:Extensions in Wikimedia version control Category:Extensions which add rights Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Internationalization extensions Category:LoadExtensionSchemaUpdates extensions Category:SkinBuildSidebar extensions Category:SkinTemplateNavigation::Universal extensions Category:Unmaintained extensions Category:UserGetLanguageObject extensions