手册:$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 75% complete.
语言、区域和字符编码设置: $wgExtraLanguageCodes
从一种语言代码到另一种语言代码的映射列表
引进版本:1.29.0 (Gerrit change 331208; git #48ab87d0)
移除版本:仍在使用
允许的值:(字符串数组)
默认值:
[
    'bh' => 'bho', // Bihari language family
    'no' => 'nb', // Norwegian language family
    'simple' => 'en', // Simple English
]

细节

该数组使代码不会在安装程序上显示为可选语言,并在运行transstat.php脚本时将其排除在外。

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.

参见