Extension:CLDR
From MediaWiki.org
|
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 |
| 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
- Download the latest snapshot and extract it to your extensions directory.
- Add this line to LocalSettings.php:
require_once( "$IP/extensions/cldr/LanguageNames.php" );
- The extension should be active now.