Extension:AutoLanguage

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
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
Last version See SVN
MediaWiki tested on 1.10 but probably works with a earlier versions
License No license specified
Download SVN
Check usage and version matrix

Contents

Purpose [edit]

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

Features [edit]

  • 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]

  • 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]

Installation [edit]

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]

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

History [edit]

  • Removed dependency on ExtensionClass

See Also [edit]

This extension is part of the BizzWiki Platform.