Extension:AutoLanguage

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manual
Crystal Clear action run.png
AutoLanguage

Release status: stable

Implementation MyWiki
Description This extension provides viewing pages in the language specified by the user's preferences automatically.
Author(s) Jean-Lou Dupont
Latest version See SVN
MediaWiki tested on 1.10 but probably works with a earlier versions
License No license specified
Download SVN

Translate the AutoLanguage extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

Purpose[edit | edit source]

This extension provides viewing pages in the language specified by the user's preferences automatically.

Features[edit | edit source]

  • Based language is assumed to be 'en'
  • Base 'page' (i.e. no /$lang sub-page) is assumed to be in 'en' language
  • Parser Cache Friendly

Usage[edit | edit source]

  • Visit 'page' and redirection to 'page/$lang' will be effected IF $lang != 'en'
  • 'page/en' can be visited as per normal
  • Visit 'page/' to show 'page' without any redirection based on this extension (i.e. same as visiting 'page' )

Dependencies[edit | edit source]

Installation[edit | edit source]

To install independantly from BizzWiki:

  • Download & Install Extension:StubManager extension
  • Dowload all this extension's files and place in the desired directory
  • Apply the following changes to 'LocalSettings.php' after the statements of Extension:StubManager:
require('extensions/AutoLanguage/AutoLanguage_stub.php');

Notes[edit | edit source]

This extension is heavily based on the 'Polyglot' extension found on Mediawiki.org.

History[edit | edit source]

  • Removed dependency on ExtensionClass

See Also[edit | edit source]

This extension is part of the BizzWiki Platform.