commit | f8e09e1ec3f4f722aa7792eaad74c6487b522a41 | [log] [tgz] |
---|---|---|
author | Lucas Werkmeister <lucas.werkmeister@wikimedia.de> | Fri Dec 20 15:29:18 2024 +0100 |
committer | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | Fri Dec 20 15:56:25 2024 +0000 |
tree | e221ef31d7711d6ce3bfee2600cda7fe7f415bb1 | |
parent | 52debecfb410006f24f594f61fc84425965f2fdd [diff] |
Fix LocalNamesWuu_hans.php Per comment in change I072ecba772 (commit 7ecb784940). Change-Id: I4ebca6cf53b3e14c96db50f5a56f54d50b5ed298 Co-Authored-By: Winston Sung <winston21.sung@gmail.com>
This extension extracts a subset of core CLDR data and makes it available to PHP.
Currently, it provides the following:
Clone the source to MediaWiki extensions/
and enable it in LocalSettings.php
:
wfLoadExtension( 'cldr' );
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
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 ); }