Extension:CLDR

From MediaWiki.org

Jump to: navigation, search

           

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
CLDR

Release status: stable

Implementation  Parser function
Description Provides a parser function to localize the names of languages based on their language code to use in multilingual wikis.
Author(s)  Niklas Laxström (NikerabbitTalk)
Last Version  1.5 (2009-01-18)
MediaWiki  1.12+
License GPL 2.0
Download Download snapshot

Subversion [Help]
Browse source code

Readme

Example  Translatewiki.net

check usage (experimental)

This extension provides a parser function to localize the names of languages based on their language code to use in multilingual wikis.

[edit] Example

{{#languagename: en }}
gives "English" if English is the language specified in the preferences or "Anglais" if French is set in the preferences

[edit] Installation

  1. Download the latest snapshot and extract it to your extensions directory.
  2. Add this line to LocalSettings.php:
require_once( "$IP/extensions/cldr/LanguageNames.php" );
  1. The extension should be active now.


[edit] See also