MediaWiki master
MediaWiki\Languages\Data\Names Class Reference

Language names in their own languages (known as "language autonyms"). More...

Public Attributes

const NAMES
 

Static Public Attributes

static string[] $names = self::NAMES
 

Detailed Description

Language names in their own languages (known as "language autonyms").

These determine things like interwikis, language selectors, and so on. Safe to change without running scripts on the respective sites.

See https://www.mediawiki.org/wiki/Manual:Adding_and_removing_languages for detailed documentation about maintaining this file, especially:

  • Finding the correct autonym.
  • What other files may have to be updated when updating this one.
  • Special handling for languages written in scripts of South and South-East Asia (Devanagari, Burmese, etc.).

Do not use this class directly. Use LanguageNameUtils::getLanguageNames(), which includes support for the CLDR extension.

Definition at line 41 of file Names.php.

Member Data Documentation

◆ $names

string [] MediaWiki\Languages\Data\Names::$names = self::NAMES
static
Deprecated
since 1.43

Definition at line 46 of file Names.php.

◆ NAMES

const MediaWiki\Languages\Data\Names::NAMES
Access: internal
Public for use by LanguageNameUtils, use LanguageNameUtils::getLanguageNames() instead. @phpcs-require-sorted-array

Definition at line 51 of file Names.php.


The documentation for this class was generated from the following file: