Fix LocalNamesWuu_hans.php

Per comment in change I072ecba772 (commit 7ecb784940).

Change-Id: I4ebca6cf53b3e14c96db50f5a56f54d50b5ed298
Co-Authored-By: Winston Sung <winston21.sung@gmail.com>
1 file changed
tree: e221ef31d7711d6ce3bfee2600cda7fe7f415bb1
  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 );
	}
  NODES
composer 1
languages 2
Note 1
os 1