From mediawiki.org
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
Quarterly downloads 2 (Ranked 158th)
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.


  • 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";