commit | b3a341e02be7abb116b2a2cba3fdd0b9eba9c580 | [log] [tgz] |
---|---|---|
author | raymond <[email protected]> | Fri Aug 01 13:20:29 2025 +0200 |
committer | raymond <[email protected]> | Fri Aug 01 13:20:29 2025 +0200 |
tree | 7172fe231fbb458c217290f7ef483647d2b9a209 | |
parent | 76758d7970787ce6b255da253226b99e5ed6dedb [diff] |
Add/update some German translation Add to English with https://gerrit.wikimedia.org/r/c/mediawiki/extensions/cldr/+/1086010 Skipped: * No German term known or identical with English: btm, bto, diq, en-x-piglatin, fiu-vro, mrh, nup, szy, tay * Exist already: hak-latn, pih * Fix: simple * Fix, not related to above patch: zh-classical Change-Id: I09490a6fe8ed33f83327575e75e2f0a54f1c867f
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 ); }