MediaWiki
1.30.0
|
Methods for dealing with language codes. More...
Static Public Member Functions | |
static | getDeprecatedCodeMapping () |
Returns a mapping of deprecated language codes that were used in previous versions of MediaWiki to up-to-date, current language codes. More... | |
static | replaceDeprecatedCodes ( $code) |
Replace deprecated language codes that were used in previous versions of MediaWiki to up-to-date, current language codes. More... | |
Static Private Attributes | |
static array | $deprecatedLanguageCodeMapping |
Mapping of deprecated language codes that were used in previous versions of MediaWiki to up-to-date, current language codes. More... | |
|
static |
Returns a mapping of deprecated language codes that were used in previous versions of MediaWiki to up-to-date, current language codes.
This array is merged into $wgDummyLanguageCodes in Setup.php, along with the fake language codes 'qqq' and 'qqx', which are used internally by MediaWiki's localisation system.
Definition at line 63 of file LanguageCode.php.
References $deprecatedLanguageCodeMapping.
Referenced by WebInstallerLanguage\getLanguageSelector(), and LanguageCodeTest\testGetDeprecatedCodeMapping().
|
static |
Replace deprecated language codes that were used in previous versions of MediaWiki to up-to-date, current language codes.
Other values will returned unchanged.
string | $code | Old language code |
Definition at line 77 of file LanguageCode.php.
References $code.
Referenced by LanguageCodeTest\testReplaceDeprecatedCodes().
|
staticprivate |
Mapping of deprecated language codes that were used in previous versions of MediaWiki to up-to-date, current language codes.
Mapping from language code to language code
Definition at line 38 of file LanguageCode.php.
Referenced by getDeprecatedCodeMapping().