Extension:PageLanguage

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
Page Language
Release status: experimental
Implementation Parser function
Description Define page language per page
Author(s) (Liangenttalk)
License No license specified
Download
Hooks used
PageContentLanguage
ParserFirstCallInit
Translate the PageLanguage extension if it is available at translatewiki.net
Check usage and version matrix.

The PageLanguage extension adds a {{PAGELANGUAGE: }} parser function to set language (seen by MediaWiki) per page.

Installation[edit]

  • Download and place the file(s) in a directory called PageLanguage in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'PageLanguage' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'PageLanguage' );, you need to use:

require_once "$IP/extensions/PageLanguage/PageLanguage.php";