Manual:$wgExtraLanguageCodes

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgExtraLanguageCodes and the translation is 50% complete.

Other languages:
English • ‎dansk • ‎français • ‎日本語
ローカライズ: $wgExtraLanguageCodes
List of mappings from one language code to another
導入されたバージョン:1.29.0 (git #48ab87d0)
除去されたバージョン:使用中
許容される値:(文字列の配列)
既定値:
[
    'bh' => 'bho', // Bihari language family
    'no' => 'nb', // Norwegian language family
    'simple' => 'en', // Simple English
]
その他の設定: アルファベット順 | 機能順

詳細

This array makes the codes not appear as a selectable language on the installer, and excludes them when running the transstat.php script.

In Setup.php, the variable $wgDummyLanguageCodes is created by combining these codes with a list of "deprecated" codes, which are mostly leftovers from renames or other legacy things, and the internal codes 'qqq' and 'qqx'.

A mapping in $wgExtraLanguageCodes takes precedence over built-in mappings.

関連項目