MediaWiki REL1_30
LanguageCode.php
Go to the documentation of this file.
1<?php
39 // Note that als is actually a valid ISO 639 code (Tosk Albanian), but it
40 // was previously used in MediaWiki for Alsatian, which comes under gsw
41 'als' => 'gsw',
42 'bat-smg' => 'sgs',
43 'be-x-old' => 'be-tarask',
44 'fiu-vro' => 'vro',
45 'roa-rup' => 'rup',
46 'zh-classical' => 'lzh',
47 'zh-min-nan' => 'nan',
48 'zh-yue' => 'yue',
49 ];
50
63 public static function getDeprecatedCodeMapping() {
65 }
66
77 public static function replaceDeprecatedCodes( $code ) {
78 if ( isset( self::$deprecatedLanguageCodeMapping[$code] ) ) {
79 return self::$deprecatedLanguageCodeMapping[$code];
80 }
81 return $code;
82 }
83}
Methods for dealing with language codes.
static array $deprecatedLanguageCodeMapping
Mapping of deprecated language codes that were used in previous versions of MediaWiki to up-to-date,...
static replaceDeprecatedCodes( $code)
Replace deprecated language codes that were used in previous versions of MediaWiki to up-to-date,...
static getDeprecatedCodeMapping()
Returns a mapping of deprecated language codes that were used in previous versions of MediaWiki to up...
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable & $code
Definition hooks.txt:863