MediaWiki  1.23.14
MessagesZh.php
Go to the documentation of this file.
1 <?php
16 # Stub message file for converter code "zh"
17 
18 $fallback = 'zh-hans';
19 
21  NS_MEDIA => 'Media',
22  NS_SPECIAL => 'Special',
23  NS_TALK => 'Talk',
24  NS_USER => 'User',
25  NS_USER_TALK => 'User_talk',
26  NS_PROJECT_TALK => '$1_talk',
27  NS_FILE => 'File',
28  NS_FILE_TALK => 'File_talk',
29  NS_MEDIAWIKI => 'MediaWiki',
30  NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
31  NS_TEMPLATE => 'Template',
32  NS_TEMPLATE_TALK => 'Template_talk',
33  NS_HELP => 'Help',
34  NS_HELP_TALK => 'Help_talk',
35  NS_CATEGORY => 'Category',
36  NS_CATEGORY_TALK => 'Category_talk',
37 );
38 
40  '媒体' => NS_MEDIA,
41  '媒體' => NS_MEDIA,
42  '特殊' => NS_SPECIAL,
43  '对话' => NS_TALK,
44  '對話' => NS_TALK,
45  '讨论' => NS_TALK,
46  '討論' => NS_TALK,
47  '用户' => NS_USER,
48  '用戶' => NS_USER,
49  '用户对话' => NS_USER_TALK,
50  '用戶對話' => NS_USER_TALK,
51  '用户讨论' => NS_USER_TALK,
52  '用戶討論' => NS_USER_TALK,
53  # This has never worked so it's unlikely to annoy anyone if I disable it -- TS
54  # '{{SITENAME}}_对话' => NS_PROJECT_TALK
55  # "{{SITENAME}}_對話" => NS_PROJECT_TALK
56  '图像' => NS_FILE,
57  '圖像' => NS_FILE,
58  '档案' => NS_FILE,
59  '檔案' => NS_FILE,
60  '文件' => NS_FILE,
61  '图像对话' => NS_FILE_TALK,
62  '圖像對話' => NS_FILE_TALK,
63  '图像讨论' => NS_FILE_TALK,
64  '圖像討論' => NS_FILE_TALK,
65  '档案对话' => NS_FILE_TALK,
66  '檔案對話' => NS_FILE_TALK,
67  '档案讨论' => NS_FILE_TALK,
68  '檔案討論' => NS_FILE_TALK,
69  '文件对话' => NS_FILE_TALK,
70  '文件對話' => NS_FILE_TALK,
71  '文件讨论' => NS_FILE_TALK,
72  '文件討論' => NS_FILE_TALK,
73  '模板' => NS_TEMPLATE,
74  '样板' => NS_TEMPLATE,
75  '樣板' => NS_TEMPLATE,
76  '模板对话' => NS_TEMPLATE_TALK,
77  '模板對話' => NS_TEMPLATE_TALK,
78  '模板讨论' => NS_TEMPLATE_TALK,
79  '模板討論' => NS_TEMPLATE_TALK,
80  '样板对话' => NS_TEMPLATE_TALK,
81  '樣板對話' => NS_TEMPLATE_TALK,
82  '样板讨论' => NS_TEMPLATE_TALK,
83  '樣板討論' => NS_TEMPLATE_TALK,
84  '帮助' => NS_HELP,
85  '幫助' => NS_HELP,
86  '帮助对话' => NS_HELP_TALK,
87  '幫助對話' => NS_HELP_TALK,
88  '帮助讨论' => NS_HELP_TALK,
89  '幫助討論' => NS_HELP_TALK,
90  '分类' => NS_CATEGORY,
91  '分類' => NS_CATEGORY,
92  '分类对话' => NS_CATEGORY_TALK,
93  '分類對話' => NS_CATEGORY_TALK,
94  '分类讨论' => NS_CATEGORY_TALK,
95  '分類討論' => NS_CATEGORY_TALK,
96 );
97 
98 $specialPageAliases = array(
99  'Allmessages' => array( '所有消息', '所有訊息', '所有讯息' ),
100  'Allpages' => array( '所有页面', '所有頁面' ),
101  'Ancientpages' => array( '最早页面', '最早頁面' ),
102  'Blankpage' => array( '空白页面', '空白頁面' ),
103  'Booksources' => array( '网络书源', '網絡書源', '網路書源', '网路书源' ),
104  'BrokenRedirects' => array( '损坏的重定向页', '損壞的重定向頁' ),
105  'Categories' => array( '页面分类', '頁面分類' ),
106  'ChangePassword' => array( '修改密码', '修改密碼' ),
107  'Confirmemail' => array( '确认电子邮件', '確認電子郵件' ),
108  'Contributions' => array( '用户贡献', '用戶貢獻' ),
109  'CreateAccount' => array( '创建账户', '創建帳戶' ),
110  'Deadendpages' => array( '断链页面', '斷鏈頁面', '斷連頁面', '断连页面' ),
111  'DeletedContributions' => array( '已删除的用户贡献', '已刪除的用戶貢獻' ),
112  'DoubleRedirects' => array( '双重重定向页面', '雙重重定向頁面' ),
113  'Emailuser' => array( '电邮用户', '電郵用戶' ),
114  'Export' => array( '导出页面', '導出頁面' ),
115  'Fewestrevisions' => array( '最少修订页面', '最少修訂頁面' ),
116  'Filepath' => array( '文件路径', '文件路徑', '檔案路徑', '档案路径' ),
117  'Import' => array( '导入页面', '導入頁面' ),
118  'Invalidateemail' => array( '不可识别的电邮地址', '不可識別的電郵地址' ),
119  'BlockList' => array( '封禁列表' ),
120  'Listadmins' => array( '管理员列表', '管理員列表' ),
121  'Listbots' => array( '机器人列表', '機器人列表' ),
122  'Listfiles' => array( '文件列表', '檔案列表', '档案列表' ),
123  'Listgrouprights' => array( '群组权限', '群組權限' ),
124  'Listusers' => array( '用户列表', '用戶列表' ),
125  'Log' => array( '日志', '日誌' ),
126  'Lonelypages' => array( '孤立页面', '孤立頁面' ),
127  'Longpages' => array( '长页面', '長頁面' ),
128  'MergeHistory' => array( '合并历史', '合併歷史' ),
129  'MIMEsearch' => array( 'MIME搜索', 'MIME搜尋', 'MIME搜寻' ),
130  'Mostcategories' => array( '最多分类页面', '最多分類頁面' ),
131  'Mostimages' => array( '最多链接文件', '最多鏈接文件', '最多連結檔案', '最多连结档案' ),
132  'Mostlinked' => array( '最多链接页面', '最多連結頁面' ),
133  'Mostlinkedcategories' => array( '最多链接分类', '最多連結分類' ),
134  'Mostlinkedtemplates' => array( '最多链接模板', '最多連結模板' ),
135  'Mostrevisions' => array( '最多修订页面', '最多修訂頁面' ),
136  'Movepage' => array( '移动页面', '移動頁面' ),
137  'Mycontributions' => array( '我的贡献', '我的貢獻' ),
138  'Mypage' => array( '我的用户页', '我的用戶頁' ),
139  'Mytalk' => array( '我的讨论页', '我的討論頁' ),
140  'Newimages' => array( '新建文件', '新建檔案', '新建档案' ),
141  'Newpages' => array( '最新页面', '最新頁面' ),
142  'Popularpages' => array( '热点页面', '熱點頁面' ),
143  'Preferences' => array( '参数设置', '參數設置' ),
144  'Prefixindex' => array( '前缀索引', '前綴索引' ),
145  'Protectedpages' => array( '已保护页面', '已保護頁面' ),
146  'Protectedtitles' => array( '已保护标题', '已保護標題' ),
147  'Randompage' => array( '随机页面', '隨機頁面' ),
148  'Recentchanges' => array( '最近更改' ),
149  'Recentchangeslinked' => array( '链出更改', '鏈出更改', '連出更改', '连出更改' ),
150  'Search' => array( '搜索', '搜尋', '搜寻' ),
151  'Shortpages' => array( '短页面', '短頁面' ),
152  'Specialpages' => array( '特殊页面', '特殊頁面' ),
153  'Statistics' => array( '统计信息', '統計信息', '統計资讯', '统计资讯' ),
154  'Uncategorizedcategories' => array( '未归类分类', '未歸類分類' ),
155  'Uncategorizedimages' => array( '未归类文件', '未歸類文件', '未歸類檔案', '未归类档案' ),
156  'Uncategorizedpages' => array( '未归类页面', '未歸類頁面' ),
157  'Uncategorizedtemplates' => array( '未归类模板', '未歸類模板' ),
158  'Undelete' => array( '恢复被删页面', '恢復被刪頁面' ),
159  'Unusedcategories' => array( '未使用分类', '未使用分類' ),
160  'Unusedimages' => array( '未使用文件', '未使用檔案', '未使用档案' ),
161  'Unusedtemplates' => array( '未使用模板' ),
162  'Upload' => array( '上传文件', '上傳檔案', '上載檔案', '上载档案' ),
163  'Userlogin' => array( '用户登录', '用戶登錄', '用戶登入', '用户登入' ),
164  'Userlogout' => array( '用户登出', '用戶登出' ),
165  'Userrights' => array( '用户权限', '用戶權限' ),
166  'Version' => array( '版本信息', '版本資訊', '版本资讯' ),
167  'Wantedcategories' => array( '待撰分类', '待撰分類' ),
168  'Wantedfiles' => array( '需要的文件', '需要的檔案', '需要的档案' ),
169  'Wantedpages' => array( '待撰页面', '待撰頁面' ),
170  'Wantedtemplates' => array( '需要的模板' ),
171  'Watchlist' => array( '监视列表', '監視列表' ),
172  'Whatlinkshere' => array( '链入页面', '鏈入頁面', '連入頁面', '连入页面' ),
173 );
174 
NS_HELP
const NS_HELP
Definition: Defines.php:91
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
NS_TEMPLATE_TALK
const NS_TEMPLATE_TALK
Definition: Defines.php:90
NS_FILE
const NS_FILE
Definition: Defines.php:85
NS_TEMPLATE
const NS_TEMPLATE
Definition: Defines.php:89
Preferences
We're now using the HTMLForm object with some customisation to generate the Preferences form.
Definition: Preferences.php:48
NS_SPECIAL
const NS_SPECIAL
Definition: Defines.php:68
ChangePassword
Maintenance script to change the password of a given user.
Definition: changePassword.php:34
so
I won t presume to tell you how to I m just describing the methods I chose to use for myself If you do choose to follow these it will probably be easier for you to collaborate with others on the but if you want to contribute without by all means do so(and don 't be surprised if I reformat your code). - I have the code indented with tabs to save file size and so that users can set their tab stops to any depth they like. I use 4-space tab stops
NS_MEDIAWIKI_TALK
const NS_MEDIAWIKI_TALK
Definition: Defines.php:88
Undelete
Definition: undelete.php:26
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
NS_CATEGORY
const NS_CATEGORY
Definition: Defines.php:93
NS_USER_TALK
const NS_USER_TALK
Definition: Defines.php:82
NS_MEDIA
const NS_MEDIA
Definition: Defines.php:67
NS_PROJECT_TALK
const NS_PROJECT_TALK
Definition: Defines.php:84
it
=Architecture==Two class hierarchies are used to provide the functionality associated with the different content models:*Content interface(and AbstractContent base class) define functionality that acts on the concrete content of a page, and *ContentHandler base class provides functionality specific to a content model, but not acting on concrete content. The most important function of ContentHandler is to act as a factory for the appropriate implementation of Content. These Content objects are to be used by MediaWiki everywhere, instead of passing page content around as text. All manipulation and analysis of page content must be done via the appropriate methods of the Content object. For each content model, a subclass of ContentHandler has to be registered with $wgContentHandlers. The ContentHandler object for a given content model can be obtained using ContentHandler::getForModelID($id). Also Title, WikiPage and Revision now have getContentHandler() methods for convenience. ContentHandler objects are singletons that provide functionality specific to the content type, but not directly acting on the content of some page. ContentHandler::makeEmptyContent() and ContentHandler::unserializeContent() can be used to create a Content object of the appropriate type. However, it is recommended to instead use WikiPage::getContent() resp. Revision::getContent() to get a page 's content as a Content object. These two methods should be the ONLY way in which page content is accessed. Another important function of ContentHandler objects is to define custom action handlers for a content model, see ContentHandler::getActionOverrides(). This is similar to what WikiPage::getActionOverrides() was already doing.==Serialization==With the ContentHandler facility, page content no longer has to be text based. Objects implementing the Content interface are used to represent and handle the content internally. For storage and data exchange, each content model supports at least one serialization format via ContentHandler::serializeContent($content). The list of supported formats for a given content model can be accessed using ContentHandler::getSupportedFormats(). Content serialization formats are identified using MIME type like strings. The following formats are built in:*text/x-wiki - wikitext *text/javascript - for js pages *text/css - for css pages *text/plain - for future use, e.g. with plain text messages. *text/html - for future use, e.g. with plain html messages. *application/vnd.php.serialized - for future use with the api and for extensions *application/json - for future use with the api, and for use by extensions *application/xml - for future use with the api, and for use by extensions In PHP, use the corresponding CONTENT_FORMAT_XXX constant. Note that when using the API to access page content, especially action=edit, action=parse and action=query &prop=revisions, the model and format of the content should always be handled explicitly. Without that information, interpretation of the provided content is not reliable. The same applies to XML dumps generated via maintenance/dumpBackup.php or Special:Export. Also note that the API will provide encapsulated, serialized content - so if the API was called with format=json, and contentformat is also json(or rather, application/json), the page content is represented as a string containing an escaped json structure. Extensions that use JSON to serialize some types of page content may provide specialized API modules that allow access to that content in a more natural form.==Compatibility==The ContentHandler facility is introduced in a way that should allow all existing code to keep functioning at least for pages that contain wikitext or other text based content. However, a number of functions and hooks have been deprecated in favor of new versions that are aware of the page 's content model, and will now generate warnings when used. Most importantly, the following functions have been deprecated:*Revisions::getText() and Revisions::getRawText() is deprecated in favor Revisions::getContent() *WikiPage::getText() is deprecated in favor WikiPage::getContent() Also, the old Article::getContent()(which returns text) is superceded by Article::getContentObject(). However, both methods should be avoided since they do not provide clean access to the page 's actual content. For instance, they may return a system message for non-existing pages. Use WikiPage::getContent() instead. Code that relies on a textual representation of the page content should eventually be rewritten. However, ContentHandler::getContentText() provides a stop-gap that can be used to get text for a page. Its behavior is controlled by $wgContentHandlerTextFallback it
Definition: contenthandler.txt:107
$namespaceAliases
$namespaceAliases
Definition: MessagesAb.php:33
NS_HELP_TALK
const NS_HELP_TALK
Definition: Defines.php:92
NS_USER
const NS_USER
Definition: Defines.php:81
$namespaceNames
$namespaceNames
Definition: MessagesZh.php:20
NS_TALK
const NS_TALK
Definition: Defines.php:80
NS_MEDIAWIKI
const NS_MEDIAWIKI
Definition: Defines.php:87
NS_FILE_TALK
const NS_FILE_TALK
Definition: Defines.php:86
NS_CATEGORY_TALK
const NS_CATEGORY_TALK
Definition: Defines.php:94
$fallback
$fallback
Definition: MessagesZh.php:18