MediaWiki extensions manual
LanguageCode
Release status: unmaintained
Implementation Variable
Description Magic words that display the current user or page language code
Author(s) Pierre Rudloff (Rudlofftalk)
MediaWiki
Composer archi-strasbourg/language-code
License GNU General Public License 3.0
Download

GitHub:

Note:
No localisation updates are
provided by translatewiki.net .


README
Releases
Hooks used
  • ParserGetVariableValueSwitch
  • MagicWordwgVariableIDs

The LanguageCode extension adds some magic words that display the current user or page language code.

Installation

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

Usage

Display the user language

{{USERLANGUAGE}}

Display the page language

{{PAGELANGUAGE}}

See also

  • Extension:UILangCode
  • Extension:MyVariables
  • Extension:Semantic Interlanguage Links
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.