手册:$wgDummyLanguageCodes
Jump to navigation
Jump to search
![]() | 这个被弃用功能不应再被使用,但出于向后兼容性的原因仍然可用。 此功能已于1.29.0版本中弃用。 请参见$wgExtraLanguageCodes以获取使用此功能的替代方式。 |
Language, regional and character encoding settings: $wgDummyLanguageCodes | |
---|---|
List of language codes that have been renamed to new (correct) codes, or don't correspond to an actual interface language. |
|
引进版本: | 1.16.0 (r60736) |
弃用版本: | 1.29.0 (Gerrit change 341937; git #6a7a973b) |
移除版本: | 仍在使用 |
允许的值: | (字符串数组) |
默认值: | 参见下方 |
其他设置: 按首字母排序 | 按功能排序 |
详情
This global variable contains an array of language codes that don't have a corresponding set of translated system messages and never will.
- In most cases they simply map directly to another language code.
These codes are left over from renames, or other legacy things.
- "qqq" is a dummy "language" for documenting messages.
- "qqx" (since 1.18) is a dummy "language" that can be used with "
&uselang=qqx
" to view the message names in the interface.
These language codes are excluded on the installer as selectable user or content languages.
Since 1.18, they are excluded when running the transstat.php
maintenance script (used for generating localisation statistics).
默认值
MediaWiki版本: | ≥ 1.19 |
$wgDummyLanguageCodes = [
'als' => 'gsw',
'bat-smg' => 'sgs',
'be-x-old' => 'be-tarask',
'bh' => 'bho',
'fiu-vro' => 'vro',
'no' => 'nb',
'qqq' => 'qqq', # 用于消息文档。
'qqx' => 'qqx', # Used for viewing message keys.
'roa-rup' => 'rup',
'simple' => 'en',
'zh-classical' => 'lzh',
'zh-min-nan' => 'nan',
'zh-yue' => 'yue',
];
MediaWiki版本: | 1.18 |
$wgDummyLanguageCodes = array(
'als',
'bat-smg',
'be-x-old',
'fiu-vro',
'iu',
'nb',
'qqq',
'qqx',
'roa-rup',
'simple',
);
MediaWiki版本: | 1.17 |
$wgDummyLanguageCodes = array(
'als',
'bat-smg',
'be-x-old',
'dk',
'fiu-vro',
'iu',
'nb',
'qqq',
'simple',
'tp',
);
MediaWiki版本: | 1.16 |
$wgDummyLanguageCodes = array( 'qqq', 'als', 'be-x-old', 'dk', 'fiu-vro', 'iu', 'nb', 'simple', 'tp' );
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings 1.16.0/zh
- MediaWiki configuration settings introduced in version 1.16.0/zh
- MediaWiki configuration settings deprecated in version 1.29.0/zh
- MediaWiki configuration settings still in use/zh
- MediaWiki deprecated or obsolete features/zh
- Interwiki variables/zh