Manual:$wgExtraLanguageCodes/zh

From Linux Web Expert

Revision as of 01:49, 28 June 2023 by 36.225.118.194 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Language, regional and character encoding settings</translate>: $wgExtraLanguageCodes
从一种语言代码到另一种语言代码的映射列表
<translate> Introduced in version:</translate>1.29.0 (Gerrit change 331208; git #48ab87d0)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(-{zh-hans:字符串数组; zh-hant:字串陣列;}-)
<translate> Default value:</translate>
[
    '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.

参见