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
1 file changed
tree: 7172fe231fbb458c217290f7ef483647d2b9a209
  1. .phan/
  2. CldrCurrency/
  3. CldrMain/
  4. CldrSupplemental/
  5. i18n/
  6. includes/
  7. LocalNames/
  8. tests/
  9. .eslintrc.json
  10. .gitignore
  11. .gitreview
  12. .phpcs.xml
  13. CldrAvailableCodes.php
  14. CODE_OF_CONDUCT.md
  15. composer.json
  16. COPYING
  17. extension.json
  18. Gruntfile.js
  19. LICENSE
  20. Makefile
  21. package-lock.json
  22. package.json
  23. README.md
  24. rebuild.php
README.md

mediawiki/extensions/cldr

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 );
	}