mediawiki / cldr
CLDR extension contains local language names for different languages, countries, and currencies extracted from CLDR data
Installs: 8 100
Dependents: 0
Suggesters: 1
Security: 0
Stars: 7
Watchers: 7
Forks: 10
Type:mediawiki-extension
Requires
- php: >=7.4
- composer/installers: >=1.0.1
Requires (Dev)
- dev-master
- 2024.07
- 2024.04
- 2024.01
- 2023.12.x-dev
- 2023.12
- 2023.10
- 2023.07
- 2023.04
- 2023.01
- 2022.10
- 2022.07
- 2022.04
- 2022.01
- 2021.12
- 2021.11
- 2021.10
- 2021.07
- 2021.06
- 2021.04
- 2021.01
- 2020.10
- 2020.07
- 2020.04
- 2020.01
- 2019.10
- 2019.07
- 2019.04
- 2019.01
- 2018.10
- 2018.07
- 2018.04
- 2018.01
- 2017.10
- 2017.07
- 2017.04
- 2017.01
- 2016.10
- 2016.08
- 2016.04
- 2016.01
- 2015.10
- 2015.08
- 2015.04
- 2015.03
- 2015.02
- 2015.01
- 2014.12
- 2014.11
- 2014.10
- 2014.09
- 2014.08
- 2014.07
- 2014.06
- 2014.05
- 2014.04
- 2014.03
- 2014.02
- 2014.01
- 2013.12
- 2013.11
- 2013.10
- 2013.09
- 2013.08
- 2013.07
- 2013.06
- 2013.05
- 2013.05-rc
- 2013.04
- 2013.03
- 2013.02
- dev-wmf/branch_cut_pretest
- dev-wmf/next
- dev-wmf/1.44.0-wmf.8
- dev-REL1_39
- dev-REL1_41
- dev-REL1_43
- dev-REL1_42
- dev-wmf/1.44.0-wmf.5
- dev-wmf/1.44.0-wmf.6
- dev-wmf/1.44.0-wmf.4
- dev-wmf/1.44.0-wmf.3
- dev-wmf/1.44.0-wmf.2
- dev-wmf/1.44.0-wmf.1
- dev-wmf/1.43.0-wmf.27
- dev-wmf/1.43.0-wmf.28
- dev-wmf/1.43.0-wmf.26
- dev-wmf/1.43.0-wmf.25
- dev-wmf/1.43.0-wmf.24
- dev-wmf/1.43.0-wmf.23
- dev-wmf/1.43.0-wmf.22
- dev-wmf/1.43.0-wmf.20
- dev-wmf/1.43.0-wmf.21
- dev-wmf/1.43.0-wmf.19
- dev-wmf/1.43.0-wmf.18
- dev-wmf/1.43.0-wmf.16
- dev-wmf/1.43.0-wmf.17
- dev-wmf/1.43.0-wmf.15
- dev-wmf/1.43.0-wmf.14
- dev-wmf/1.43.0-wmf.13
- dev-wmf/1.43.0-wmf.12
- dev-wmf/1.43.0-wmf.11
- dev-REL1_40
- dev-wmf/1.43.0-wmf.10
- dev-wmf/1.43.0-wmf.9
- dev-wmf/1.43.0-wmf.6
- dev-wmf/1.43.0-wmf.7
- dev-wmf/1.43.0-wmf.8
- dev-wmf/1.43.0-wmf.5
- dev-wmf/1.43.0-wmf.4
- dev-wmf/1.43.0-wmf.2
- dev-wmf/1.43.0-wmf.3
- dev-wmf/1.43.0-wmf.1
- dev-wmf/1.42.0-wmf.22
- dev-wmf/1.42.0-wmf.23
- dev-wmf/1.42.0-wmf.24
- dev-wmf/1.42.0-wmf.25
- dev-wmf/1.42.0-wmf.26
- dev-wmf/1.42.0-wmf.19
- dev-wmf/1.42.0-wmf.20
- dev-wmf/1.42.0-wmf.21
- dev-wmf/1.42.0-wmf.17
- dev-wmf/1.42.0-wmf.18
- dev-wmf/1.42.0-wmf.16
- dev-wmf/1.42.0-wmf.15
- dev-wmf/1.42.0-wmf.14
- dev-wmf/1.42.0-wmf.13
- dev-wmf/1.42.0-wmf.12
- dev-REL1_35
- dev-wmf/1.42.0-wmf.10
- dev-wmf/1.42.0-wmf.9
- dev-wmf/1.42.0-wmf.7
- dev-wmf/1.42.0-wmf.1
- dev-wmf/1.42.0-wmf.2
- dev-wmf/1.42.0-wmf.3
- dev-wmf/1.42.0-wmf.4
- dev-wmf/1.42.0-wmf.5
- dev-wmf/1.41.0-wmf.30
- dev-wmf/1.41.0-wmf.29
- dev-wmf/1.41.0-wmf.27
- dev-wmf/1.41.0-wmf.28
- dev-REL1_38
- dev-wmf/1.41.0-wmf.26
- dev-wmf/1.41.0-wmf.24
- dev-wmf/1.41.0-wmf.25
- dev-wmf/1.41.0-wmf.22
- dev-wmf/1.41.0-wmf.23
- dev-wmf/1.41.0-wmf.19
- dev-wmf/1.41.0-wmf.20
- dev-wmf/1.41.0-wmf.18
- dev-wmf/1.41.0-wmf.12
- dev-wmf/1.41.0-wmf.13
- dev-wmf/1.41.0-wmf.15
- dev-wmf/1.41.0-wmf.16
- dev-wmf/1.41.0-wmf.17
- dev-wmf/1.41.0-wmf.10
- dev-wmf/1.41.0-wmf.11
- dev-wmf/1.41.0-wmf.9
- dev-wmf/1.41.0-wmf.8
- dev-wmf/1.41.0-wmf.7
- dev-wmf/1.41.0-wmf.6
- dev-wmf/1.41.0-wmf.5
- dev-wmf/1.41.0-wmf.4
- dev-wmf/1.41.0-wmf.1
- dev-wmf/1.41.0-wmf.2
- dev-wmf/1.41.0-wmf.3
- dev-wmf/1.40.0-wmf.27
- dev-wmf/1.40.0-wmf.25
- dev-wmf/1.40.0-wmf.26
- dev-wmf/1.40.0-wmf.24
- dev-wmf/1.40.0-wmf.20
- dev-wmf/1.40.0-wmf.21
- dev-wmf/1.40.0-wmf.22
- dev-wmf/1.40.0-wmf.23
- dev-wmf/1.40.0-wmf.18
- dev-wmf/1.40.0-wmf.19
- dev-wmf/1.40.0-wmf.17
- dev-wmf/1.40.0-wmf.13
- dev-wmf/1.40.0-wmf.14
- dev-wmf/1.40.0-wmf.12
- dev-REL1_37
- dev-wmf/1.40.0-wmf.10
- dev-wmf/1.40.0-wmf.7
- dev-wmf/1.40.0-wmf.8
- dev-wmf/1.40.0-wmf.9
- dev-wmf/1.40.0-wmf.5
- dev-wmf/1.40.0-wmf.6
- dev-wmf/1.40.0-wmf.4
- dev-wmf/1.40.0-wmf.3
- dev-wmf/1.39.0-wmf.28
- dev-wmf/1.40.0-wmf.1
- dev-wmf/1.40.0-wmf.2
- dev-wmf/1.39.0-wmf.27
- dev-wmf/1.39.0-wmf.23
- dev-wmf/1.39.0-wmf.24
- dev-wmf/1.39.0-wmf.25
- dev-wmf/1.39.0-wmf.26
- dev-wmf/1.39.0-wmf.18
- dev-wmf/1.39.0-wmf.19
- dev-wmf/1.39.0-wmf.20
- dev-wmf/1.39.0-wmf.21
- dev-wmf/1.39.0-wmf.22
- dev-wmf/1.39.0-wmf.17
- dev-wmf/1.39.0-wmf.16
- dev-wmf/1.39.0-wmf.14
- dev-wmf/1.39.0-wmf.15
- dev-REL1_36
- dev-wmf/1.39.0-wmf.13
- dev-wmf/1.39.0-wmf.12
- dev-wmf/1.39.0-wmf.10
- dev-wmf/1.39.0-wmf.11
- dev-wmf/1.39.0-wmf.9
- dev-wmf/1.39.0-wmf.1
- dev-wmf/1.39.0-wmf.2
- dev-wmf/1.39.0-wmf.3
- dev-wmf/1.39.0-wmf.4
- dev-wmf/1.39.0-wmf.5
- dev-wmf/1.39.0-wmf.6
- dev-wmf/1.39.0-wmf.7
- dev-wmf/1.39.0-wmf.8
- dev-wmf/1.38.0-wmf.26
- dev-wmf/1.38.0-wmf.25
- dev-wmf/1.38.0-wmf.20
- dev-wmf/1.38.0-wmf.21
- dev-wmf/1.38.0-wmf.22
- dev-wmf/1.38.0-wmf.23
- dev-wmf/1.38.0-wmf.24
- dev-wmf/1.38.0-wmf.13
- dev-wmf/1.38.0-wmf.14
- dev-wmf/1.38.0-wmf.15
- dev-wmf/1.38.0-wmf.16
- dev-wmf/1.38.0-wmf.17
- dev-wmf/1.38.0-wmf.18
- dev-wmf/1.38.0-wmf.19
- dev-wmf/1.38.0-wmf.11
- dev-wmf/1.38.0-wmf.12
- dev-wmf/1.38.0-wmf.10
- dev-wmf/1.38.0-wmf.9
- dev-wmf/1.38.0-wmf.8
- dev-wmf/1.38.0-wmf.7
- dev-mleb-2021.11
- dev-mleb-2021.12
- dev-wmf/1.38.0-wmf.6
- dev-wmf/1.38.0-wmf.5
- dev-wmf/1.38.0-wmf.4
- dev-wmf/1.37.0-wmf.24
- dev-wmf/1.38.0-wmf.1
- dev-wmf/1.38.0-wmf.2
- dev-wmf/1.38.0-wmf.3
- dev-wmf/1.37.0-wmf.23
- dev-REL1_31
- dev-wmf/1.37.0-wmf.22
- dev-wmf/1.37.0-wmf.20
- dev-wmf/1.37.0-wmf.21
- dev-wmf/1.37.0-wmf.19
- dev-wmf/1.37.0-wmf.16
- dev-wmf/1.37.0-wmf.17
- dev-wmf/1.37.0-wmf.18
- dev-wmf/1.37.0-wmf.15
- dev-wmf/1.37.0-wmf.12
- dev-wmf/1.37.0-wmf.13
- dev-wmf/1.37.0-wmf.14
- dev-wmf/1.37.0-wmf.11
- dev-wmf/1.37.0-wmf.10
- dev-wmf/1.37.0-wmf.9
- dev-wmf/1.37.0-wmf.8
- dev-wmf/1.37.0-wmf.7
- dev-wmf/1.37.0-wmf.6
- dev-wmf/1.37.0-wmf.5
- dev-wmf/1.37.0-wmf.2
- dev-wmf/1.37.0-wmf.3
- dev-wmf/1.37.0-wmf.4
- dev-wmf/1.36.0-wmf.38
- dev-wmf/1.36.0-wmf.39
- dev-wmf/1.37.0-wmf.1
- dev-wmf/1.36.0-wmf.35
- dev-wmf/1.36.0-wmf.36
- dev-wmf/1.36.0-wmf.37
- dev-wmf/1.36.0-wmf.34
- dev-wmf/1.36.0-wmf.33
- dev-wmf/1.36.0-wmf.31
- dev-wmf/1.36.0-wmf.32
- dev-wmf/1.36.0-wmf.29
- dev-wmf/1.36.0-wmf.30
- dev-wmf/1.36.0-wmf.23
- dev-wmf/1.36.0-wmf.24
- dev-wmf/1.36.0-wmf.25
- dev-wmf/1.36.0-wmf.26
- dev-wmf/1.36.0-wmf.27
- dev-wmf/1.36.0-wmf.28
- dev-wmf/1.36.0-wmf.22
- dev-wmf/1.36.0-wmf.20
- dev-wmf/1.36.0-wmf.21
- dev-wmf/1.36.0-wmf.19
- dev-wmf/1.36.0-wmf.17
- dev-wmf/1.36.0-wmf.18
- dev-wmf/1.36.0-wmf.16
- dev-wmf/1.36.0-wmf.14
- dev-wmf/1.36.0-wmf.15
- dev-wmf/1.36.0-wmf.13
- dev-wmf/1.36.0-wmf.11
- dev-wmf/1.36.0-wmf.12
- dev-wmf/1.36.0-wmf.10
- dev-wmf/1.36.0-wmf.9
- dev-wmf/1.36.0-wmf.8
- dev-wmf/1.36.0-wmf.3
- dev-wmf/1.36.0-wmf.4
- dev-wmf/1.36.0-wmf.5
- dev-wmf/1.36.0-wmf.6
- dev-wmf/1.36.0-wmf.7
- dev-wmf/1.36.0-wmf.1
- dev-wmf/1.36.0-wmf.2
- dev-wmf/1.35.0-wmf.41
- dev-wmf/1.35.0-wmf.37
- dev-wmf/1.35.0-wmf.38
- dev-wmf/1.35.0-wmf.39
- dev-wmf/1.35.0-wmf.40
- dev-wmf/1.35.0-wmf.35
- dev-wmf/1.35.0-wmf.36
- dev-wmf/1.35.0-wmf.34
- dev-wmf/1.35.0-wmf.32
- dev-wmf/1.35.0-wmf.30
- dev-wmf/1.35.0-wmf.31
- dev-wmf/1.35.0-wmf.999
- dev-wmf/1.35.0-wmf.27
- dev-wmf/1.35.0-wmf.28
- dev-wmf/1.35.0-wmf.25
- dev-wmf/1.35.0-wmf.26
- dev-wmf/1.35.0-wmf.24
- dev-wmf/1.35.0-wmf.23
- dev-wmf/1.35.0-wmf.22
- dev-wmf/1.35.0-wmf.20
- dev-wmf/1.35.0-wmf.21
- dev-wmf/1.34.0-wmf.18
- dev-wmf/1.35.0-wmf.16
- dev-wmf/1.35.0-wmf.18
- dev-wmf/1.35.0-wmf.19
- dev-wmf/1.35.0-wmf.15
- dev-wmf/1.35.0-wmf.14
- dev-wmf/1.35.0-wmf.11
- dev-wmf/1.35.0-wmf.10
- dev-wmf/1.35.0-wmf.8
- dev-wmf/1.35.0-wmf.4
- dev-wmf/1.35.0-wmf.5
- dev-wmf/1.35.0-wmf.2
- dev-wmf/1.35.0-wmf.3
- dev-REL1_34
- dev-wmf/1.34.0-wmf.22
- dev-wmf/1.34.0-wmf.23
- dev-wmf/1.34.0-wmf.24
- dev-wmf/1.34.0-wmf.25
- dev-wmf/1.35.0-wmf.1
- dev-wmf/1.34.0-wmf.20
- dev-wmf/1.34.0-wmf.21
- dev-wmf/1.34.0-wmf.17
- dev-wmf/1.34.0-wmf.19
- dev-wmf/1.34.0-wmf.14
- dev-wmf/1.34.0-wmf.15
- dev-wmf/1.34.0-wmf.16
- dev-wmf/1.34.0-wmf.13
- dev-wmf/1.34.0-wmf.10
- dev-wmf/1.34.0-wmf.11
- dev-wmf/1.34.0-wmf.8
- dev-wmf/1.34.0-wmf.7
- dev-wmf/1.34.0-wmf.6
- dev-wmf/1.34.0-wmf.4
- dev-wmf/1.34.0-wmf.5
- dev-wmf/1.34.0-wmf.1
- dev-wmf/1.34.0-wmf.3
- dev-wmf/1.33.0-wmf.25
- dev-REL1_33
- dev-wmf/1.33.0-wmf.22
- dev-wmf/1.33.0-wmf.23
- dev-wmf/1.33.0-wmf.24
- dev-wmf/1.33.0-wmf.21
- dev-wmf/1.33.0-wmf.20
- dev-wmf/1.33.0-wmf.17
- dev-wmf/1.33.0-wmf.18
- dev-wmf/1.33.0-wmf.19
- dev-REL1_32
- dev-wmf/1.32.0-wmf.25
- dev-REL1_30
- dev-REL1_29
- dev-REL1_28
- dev-REL1_27
- dev-REL1_26
- dev-fundraising/REL1_26
- dev-REL1_25
- dev-REL1_24
- dev-REL1_23
- dev-REL1_22
- dev-REL1_21
This package is auto-updated.
Last update: 2024-12-21 01:00:26 UTC
README
This extension extracts a subset of core CLDR data and makes it available to PHP.
Currently, it provides the following:
- Country names
- Currency names and symbols
- Language names
- Units of time
Installation
Clone the source to MediaWiki extensions/
and enable it in LocalSettings.php
:
wfLoadExtension( 'cldr' );
Updating data
Look up the latest release of CLDR and note the version number.
Update the version number in CLDR_CORE_URL
in Makefile
. Run make
:
make all
Example usage
if ( ExtensionRegistry::isLoaded( 'cldr' ) ) { // Get the English translation of all available language names. $languages = LanguageNames::getNames( 'en' , LanguageNames::FALLBACK_NATIVE, LanguageNames::LIST_MW_AND_CLDR ); } else { // Fall back to the MediaWiki core function without CLDR. $languages = Language::getLanguageNames( false ); }