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 (experimental)

Contents

[edit] Purpose

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

[edit] Features

  • 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

[edit] Usage

  • 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' )

[edit] Dependencies

[edit] Installation

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');

[edit] Notes

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

[edit] History

  • Removed dependency on ExtensionClass

[edit] See Also

This extension is part of the BizzWiki Platform.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox