Not to be confused with the feature Special:PageLanguage, for which see Manual:Language#Page content language.
MediaWiki extensions manual
Page Language
Release status: experimental
Implementation Parser function
Description Define page language per page
Author(s) (Liangenttalk)
MediaWiki >= 1.35.0
License No license specified
Download
Hooks used
  • PageContentLanguage
  • ParserFirstCallInit
Quarterly downloads 1 (Ranked 169th)
Translate the PageLanguage extension if it is available at translatewiki.net

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

Installation

  • 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 file:
    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";
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.