Extension:CLDR

The CLDR extension contains local language names for different languages, countries, and currencies extracted from CLDR data; see CLDR for information.

Installation

 * 1) Download the files from Git or download a snapshot. Choose the version that matches your version of MediaWiki.
 * 2) Create a directory   in your   directory.
 * 3) Extract the files to this   directory.
 * 4) Add   to the bottom of LocalSettings.php.
 * 5) Installation can now be verified through Special:Version of your wiki.

Updating data
The CLDR extension comes with data pre-populated in the language files, but if you want to get the latest data from the Unicode Consortium, you'll need to download it from the CLDR site and then run a rebuild script.

Download newest data from CLDR site: http://www.unicode.org/cldr/repository_access.html

Example (from within the cldr directory): wget http://www.unicode.org/Public/cldr/latest/core.zip unzip core.zip -d core php rebuild.php

Language names
CLDR defines the class LanguageNames which has a static method, getNames. LanguageNames::getNames accepts three parameters:
 * 1) code - the ISO 639 code of the preferred language to return the list in
 * 2) fbMethod - fallback method. Should be set to one of the following:
 * 3) * LanguageNames::FALLBACK_NATIVE (default): Missing entries fallback to the native name
 * 4) * LanguageNames::FALLBACK_NORMAL: Missing entries fallback through the fallback chain
 * 5) list - which languages to return. Should be set to one of the following:
 * 6) * LanguageNames::LIST_MW_SUPPORTED: Only languages that have localization in MediaWiki
 * 7) * LanguageNames::LIST_MW (default): All languages that are in Names.php
 * 8) * LanguageNames::LIST_MW_AND_CLDR: All languages that are either in MediaWiki or in CLDR

Example
The following example sets a variable to the list of all languages in MediaWiki and CLDR in English.

Country names
CLDR defines the class CountryNames which has a static method, getNames. CountryNames::getNames accepts one parameter:
 * 1) code - the ISO 639 code of the preferred language to return the list in

Example
The following example sets a variable to the list of all countries in CLDR in French.

Currency names
CLDR defines the class CurrencyNames which has a static method, getNames. CurrencyNames::getNames accepts one parameter:
 * 1) code - the ISO 639 code of the preferred language to return the list in

Example
The following example sets a variable to the list of all currencies in CLDR in German.

위키

 * 0.1
 * 0.2
 * 0.2.1
 * 5.0
 * 6.0

한자

 * ㄷ규

계단

 * ㅇㄹ

위위

 * 사망

위키낱말사전

 * 0.00.0

위키낱말사전2

 * 0.00.0000.0

마인크래프트

 * 구구구구구구구구tnt

유의어

 * 우위어

위위위키키키

 * 얽곇굾

shs

 * djrg

rfner

 * fdfrdhjghrdgdui

dfdjigdg

 * fduigdfgruigdgiu

위키낱말사전 3

 * ㄹ홄

핳걓곻솟

 * 어뎌호류
 * 럭셔

ㅇㄱ

 * ㅇㅎ겋ㄱ

사전

 * 유융
 * 슈슈슈슈
 * dwefhyyfefefefef
 * dfefefefe
 * ㅇㅎㄷㅇㅀㄷㄹ
 * feyer8gregrehygerurujrewuhuew7u8we747t4h37hvthrnvgerynrrㄱ수소ㅜ수ㅇㅕ소ㅜㅜㅕㅅ후ㅕㄱ듀ㅗㅕㅜㄷㄺㅇ혀ㅜㅜㅕㅛ소ㅜㅛ수ㅗ스ㅓㅛ서
 * 마인크래프트 추가

릐

 * 000
 * 858
 * 25

ㅇㄴㄹㅇㄹㄹㅇ
995959595589859949527295759ㄹ5ㅛ

fbgrgfr

 * 888989]
 * 45292945
 * 452456258
 * 4275878

dfgdfd

 * dsfuhseufe

sasgds

 * sss
 * bbvvbvbbbcvbvbhvhvvbhdsfbcbhdsfvedfd

ㅁㄴㅁㄴㅁ
ㄹ휴ㅗㄴㅁ옹ㄴ오쥬옹ㅈㅇㄴㅇㄴ머ㅗ퓨정ㄹㅇㅎㅎㅍㅇㅎㅁㄴ

주민

File:0.7

♙[ddd]][[Category:맋]] ddd