MediaWiki  1.30.0
MessagesZh_hans.php
Go to the documentation of this file.
1 <?php
83 $fallback8bitEncoding = 'windows-936';
84 
86  NS_MEDIA => '媒体文件',
87  NS_SPECIAL => '特殊',
88  NS_TALK => '讨论',
89  NS_USER => '用户',
90  NS_USER_TALK => '用户讨论',
91  NS_PROJECT_TALK => '$1讨论',
92  NS_FILE => '文件',
93  NS_FILE_TALK => '文件讨论',
94  NS_MEDIAWIKI => 'MediaWiki',
95  NS_MEDIAWIKI_TALK => 'MediaWiki讨论',
96  NS_TEMPLATE => '模板',
97  NS_TEMPLATE_TALK => '模板讨论',
98  NS_HELP => '帮助',
99  NS_HELP_TALK => '帮助讨论',
100  NS_CATEGORY => '分类',
101  NS_CATEGORY_TALK => '分类讨论',
102 ];
103 
105  '媒体' => NS_MEDIA,
106  '特殊' => NS_SPECIAL,
107  '对话' => NS_TALK,
108  '讨论' => NS_TALK,
109  '用户' => NS_USER,
110  '用户对话' => NS_USER_TALK,
111  '用户讨论' => NS_USER_TALK,
112  '图像' => NS_FILE,
113  '档案' => NS_FILE,
114  '文件' => NS_FILE,
115  'Image' => NS_FILE,
116  'Image_talk' => NS_FILE_TALK,
117  '图像对话' => NS_FILE_TALK,
118  '图像讨论' => NS_FILE_TALK,
119  '档案对话' => NS_FILE_TALK,
120  '档案讨论' => NS_FILE_TALK,
121  '文件对话' => NS_FILE_TALK,
122  '文件讨论' => NS_FILE_TALK,
123  '模板' => NS_TEMPLATE,
124  '模板对话' => NS_TEMPLATE_TALK,
125  '模板讨论' => NS_TEMPLATE_TALK,
126  '帮助' => NS_HELP,
127  '帮助对话' => NS_HELP_TALK,
128  '帮助讨论' => NS_HELP_TALK,
129  '分类' => NS_CATEGORY,
130  '分类对话' => NS_CATEGORY_TALK,
131  '分类讨论' => NS_CATEGORY_TALK,
132 ];
133 
135  'Activeusers' => [ '活跃用户' ],
136  'Allmessages' => [ '所有信息' ],
137  'AllMyUploads' => [ '我上传的所有文件', '我的所有文件' ],
138  'Allpages' => [ '所有页面' ],
139  'ApiHelp' => [ 'Api帮助' ],
140  'Ancientpages' => [ '最老页面' ],
141  'Badtitle' => [ '错误标题', '无效标题' ],
142  'Blankpage' => [ '空白页面' ],
143  'Block' => [ '封禁', '封禁IP', '封禁用户', '封' ],
144  'Booksources' => [ '网络书源' ],
145  'BrokenRedirects' => [ '受损重定向' ],
146  'Categories' => [ '页面分类' ],
147  'ChangeEmail' => [ '修改邮箱地址' ],
148  'ChangePassword' => [ '修改密码', '重置密码', '找回密码' ],
149  'ComparePages' => [ '对比页面' ],
150  'Confirmemail' => [ '确认电子邮件' ],
151  'Contributions' => [ '用户贡献', '贡献' ],
152  'CreateAccount' => [ '创建账户' ],
153  'Deadendpages' => [ '断链页面' ],
154  'DeletedContributions' => [ '已删除的用户贡献' ],
155  'Diff' => [ '编辑差异' ],
156  'DoubleRedirects' => [ '双重重定向', '两次重定向' ],
157  'EditWatchlist' => [ '编辑监视列表' ],
158  'Emailuser' => [ '电邮联系' ],
159  'ExpandTemplates' => [ '展开模板' ],
160  'Export' => [ '导出页面', '导出' ],
161  'Fewestrevisions' => [ '版本最少页面', '最少修订页面' ],
162  'FileDuplicateSearch' => [ '搜索重复文件' ],
163  'Filepath' => [ '文件路径' ],
164  'Import' => [ '导入页面', '导入' ],
165  'Invalidateemail' => [ '无效电邮地址' ],
166  'JavaScriptTest' => [ 'JavaScript测试' ],
167  'BlockList' => [ '封禁列表', 'IP封禁列表' ],
168  'LinkSearch' => [ '搜索网页链接' ],
169  'Listadmins' => [ '管理员列表' ],
170  'Listbots' => [ '机器人列表' ],
171  'Listfiles' => [ '文件列表', '图像列表' ],
172  'Listgrouprights' => [ '用户组权限' ],
173  'Listredirects' => [ '重定向页列表' ],
174  'ListDuplicatedFiles' => [ '重复文件列表' ],
175  'Listusers' => [ '用户列表' ],
176  'Lockdb' => [ '锁定数据库' ],
177  'Log' => [ '日志' ],
178  'Lonelypages' => [ '孤立页面' ],
179  'Longpages' => [ '长页面' ],
180  'MediaStatistics' => [ '媒体统计' ],
181  'MergeHistory' => [ '合并历史' ],
182  'MIMEsearch' => [ 'MIME搜索' ],
183  'Mostcategories' => [ '最多分类页面' ],
184  'Mostimages' => [ '最多链接文件' ],
185  'Mostinterwikis' => [ '最多跨wiki链接页面' ],
186  'Mostlinked' => [ '最多链接页面' ],
187  'Mostlinkedcategories' => [ '最多链接分类' ],
188  'Mostlinkedtemplates' => [ '最多嵌入页面', '最多链接模板', '最多使用模板' ],
189  'Mostrevisions' => [ '最多修订页面' ],
190  'Movepage' => [ '移动页面' ],
191  'Mycontributions' => [ '我的贡献' ],
192  'MyLanguage' => [ '我的语言' ],
193  'Mypage' => [ '我的用户页' ],
194  'Mytalk' => [ '我的讨论页', '我的对话页' ],
195  'Myuploads' => [ '我上传的文件', '我的文件' ],
196  'Newimages' => [ '新建文件', '新建图像' ],
197  'Newpages' => [ '新建页面' ],
198  'PagesWithProp' => [ '带属性的页面', '基于属性的页面' ],
199  'PageLanguage' => [ '页面语言' ],
200  'PasswordReset' => [ '重设密码' ],
201  'PermanentLink' => [ '固定链接', '永久链接' ],
202  'Preferences' => [ '参数设置', '设置' ],
203  'Prefixindex' => [ '前缀索引' ],
204  'Protectedpages' => [ '已保护页面' ],
205  'Protectedtitles' => [ '已保护标题' ],
206  'Randompage' => [ '随机', '随机页面' ],
207  'RandomInCategory' => [ '分类内随机' ],
208  'Randomredirect' => [ '随机重定向', '随机重定向页' ],
209  'Randomrootpage' => [ '随机根页面' ],
210  'Recentchanges' => [ '最近更改' ],
211  'Recentchangeslinked' => [ '最近链出更改', '相关更改' ],
212  'Redirect' => [ '重定向' ],
213  'ResetTokens' => [ '重置权标' ],
214  'Revisiondelete' => [ '删除修订', '恢复修订' ],
215  'RunJobs' => [ '运行工作' ],
216  'Search' => [ '搜索' ],
217  'Shortpages' => [ '短页面' ],
218  'Specialpages' => [ '特殊页面' ],
219  'Statistics' => [ '统计信息' ],
220  'Tags' => [ '标签' ],
221  'TrackingCategories' => [ '追踪分类' ],
222  'Unblock' => [ '解除封禁', '解封' ],
223  'Uncategorizedcategories' => [ '未分类分类' ],
224  'Uncategorizedimages' => [ '未分类文件', '未分类图像' ],
225  'Uncategorizedpages' => [ '未分类页面' ],
226  'Uncategorizedtemplates' => [ '未分类模板' ],
227  'Undelete' => [ '恢复被删页面' ],
228  'Unlockdb' => [ '解除数据库锁定' ],
229  'Unusedcategories' => [ '未使用分类' ],
230  'Unusedimages' => [ '未使用文件', '未使用图像' ],
231  'Unusedtemplates' => [ '未使用模板' ],
232  'Unwatchedpages' => [ '未受监视页面' ],
233  'Upload' => [ '上传文件' ],
234  'UploadStash' => [ '上传藏匿' ],
235  'Userlogin' => [ '用户登录', '登录' ],
236  'Userlogout' => [ '用户退出', '退出' ],
237  'Userrights' => [ '用户权限' ],
238  'Version' => [ '版本', '版本信息' ],
239  'Wantedcategories' => [ '需要的分类', '待撰分类' ],
240  'Wantedfiles' => [ '需要的文件' ],
241  'Wantedpages' => [ '需要的页面', '待撰页面', '受损链接' ],
242  'Wantedtemplates' => [ '需要的模板' ],
243  'Watchlist' => [ '监视列表' ],
244  'Whatlinkshere' => [ '链入页面' ],
245  'Withoutinterwiki' => [ '无跨wiki', '无跨wiki链接页面' ],
246 ];
247 
249  'redirect' => [ '0', '#重定向', '#REDIRECT' ],
250  'notoc' => [ '0', '__无目录__', '__NOTOC__' ],
251  'nogallery' => [ '0', '__无图库__', '__NOGALLERY__' ],
252  'forcetoc' => [ '0', '__强显目录__', '__FORCETOC__' ],
253  'toc' => [ '0', '__目录__', '__TOC__' ],
254  'noeditsection' => [ '0', '__无编辑段落__', '__无段落编辑__', '__NOEDITSECTION__' ],
255  'currentmonth' => [ '1', '本月', '本月2', 'CURRENTMONTH', 'CURRENTMONTH2' ],
256  'currentmonth1' => [ '1', '本月1', 'CURRENTMONTH1' ],
257  'currentmonthname' => [ '1', '本月名', '本月名称', 'CURRENTMONTHNAME' ],
258  'currentmonthnamegen' => [ '1', '本月名属格', '本月名称属格', 'CURRENTMONTHNAMEGEN' ],
259  'currentmonthabbrev' => [ '1', '本月简称', 'CURRENTMONTHABBREV' ],
260  'currentday' => [ '1', '今天', 'CURRENTDAY' ],
261  'currentday2' => [ '1', '今天2', 'CURRENTDAY2' ],
262  'currentdayname' => [ '1', '星期', '今天名', '今天名称', 'CURRENTDAYNAME' ],
263  'currentyear' => [ '1', '今年', 'CURRENTYEAR' ],
264  'currenttime' => [ '1', '当前时间', '此时', 'CURRENTTIME' ],
265  'currenthour' => [ '1', '当前小时', 'CURRENTHOUR' ],
266  'localmonth' => [ '1', '本地月', '本地月2', 'LOCALMONTH', 'LOCALMONTH2' ],
267  'localmonth1' => [ '1', '本地月1', 'LOCALMONTH1' ],
268  'localmonthname' => [ '1', '本地月份名', 'LOCALMONTHNAME' ],
269  'localmonthnamegen' => [ '1', '本地月历', 'LOCALMONTHNAMEGEN' ],
270  'localmonthabbrev' => [ '1', '本地月缩写', 'LOCALMONTHABBREV' ],
271  'localday' => [ '1', '本地日', 'LOCALDAY' ],
272  'localday2' => [ '1', '本地日2', 'LOCALDAY2' ],
273  'localdayname' => [ '1', '本地日名', 'LOCALDAYNAME' ],
274  'localyear' => [ '1', '本地年', 'LOCALYEAR' ],
275  'localtime' => [ '1', '本地时间', 'LOCALTIME' ],
276  'localhour' => [ '1', '本地小时', 'LOCALHOUR' ],
277  'numberofpages' => [ '1', '页面数', 'NUMBEROFPAGES' ],
278  'numberofarticles' => [ '1', '条目数', 'NUMBEROFARTICLES' ],
279  'numberoffiles' => [ '1', '文件数', 'NUMBEROFFILES' ],
280  'numberofusers' => [ '1', '用户数', 'NUMBEROFUSERS' ],
281  'numberofactiveusers' => [ '1', '活跃用户数', 'NUMBEROFACTIVEUSERS' ],
282  'numberofedits' => [ '1', '编辑数', 'NUMBEROFEDITS' ],
283  'pagename' => [ '1', '页名', '页面名', '页面名称', 'PAGENAME' ],
284  'pagenamee' => [ '1', '页面名等同', '页面名称等同', 'PAGENAMEE' ],
285  'namespace' => [ '1', '名字空间', 'NAMESPACE' ],
286  'namespacee' => [ '1', '名字空间等同', 'NAMESPACEE' ],
287  'namespacenumber' => [ '1', '名字空间编号', 'NAMESPACENUMBER' ],
288  'talkspace' => [ '1', '讨论空间', '讨论名字空间', 'TALKSPACE' ],
289  'talkspacee' => [ '1', '讨论空间等同', '讨论名字空间等同', 'TALKSPACEE' ],
290  'subjectspace' => [ '1', '主名字空间', '条目名字空间', 'SUBJECTSPACE', 'ARTICLESPACE' ],
291  'subjectspacee' => [ '1', '主名字空间等同', '条目名字空间等同', 'SUBJECTSPACEE', 'ARTICLESPACEE' ],
292  'fullpagename' => [ '1', '页面全称', '完整页面名称', 'FULLPAGENAME' ],
293  'fullpagenamee' => [ '1', '完整页面名称等同', 'FULLPAGENAMEE' ],
294  'subpagename' => [ '1', '子页面名称', 'SUBPAGENAME' ],
295  'subpagenamee' => [ '1', '子页面名称等同', 'SUBPAGENAMEE' ],
296  'rootpagename' => [ '1', '根页面名称', 'ROOTPAGENAME' ],
297  'rootpagenamee' => [ '1', '根页面名称等同', 'ROOTPAGENAMEE' ],
298  'basepagename' => [ '1', '基础页面名称', 'BASEPAGENAME' ],
299  'basepagenamee' => [ '1', '基础页面名称等同', 'BASEPAGENAMEE' ],
300  'talkpagename' => [ '1', '讨论页面名称', '对话页面名称', 'TALKPAGENAME' ],
301  'talkpagenamee' => [ '1', '讨论页面名称等同', '对话页面名称等同', 'TALKPAGENAMEE' ],
302  'subjectpagename' => [ '1', '主名字空间页面名称', '条目页面名称', 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ],
303  'subjectpagenamee' => [ '1', '主名字空间页面名称等同', '条目页面名称等同', 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ],
304  'subst' => [ '0', '替代:', 'SUBST:' ],
305  'safesubst' => [ '0', '安全替代:', 'SAFESUBST:' ],
306  'img_thumbnail' => [ '1', '缩略图', 'thumbnail', 'thumb' ],
307  'img_manualthumb' => [ '1', '缩略图=$1', 'thumbnail=$1', 'thumb=$1' ],
308  'img_right' => [ '1', '右', 'right' ],
309  'img_left' => [ '1', '左', 'left' ],
310  'img_none' => [ '1', '无', 'none' ],
311  'img_width' => [ '1', '$1像素', '$1px' ],
312  'img_center' => [ '1', '居中', 'center', 'centre' ],
313  'img_framed' => [ '1', '有框', 'framed', 'enframed', 'frame' ],
314  'img_frameless' => [ '1', '无框', 'frameless' ],
315  'img_lang' => [ '1', '语言=$1', 'lang=$1' ],
316  'img_page' => [ '1', '页数=$1', '$1页', 'page=$1', 'page $1' ],
317  'img_upright' => [ '1', '右上', '右上=$1', '右上$1', 'upright', 'upright=$1', 'upright $1' ],
318  'img_border' => [ '1', '边框', 'border' ],
319  'img_baseline' => [ '1', '基线', 'baseline' ],
320  'img_sub' => [ '1', '子', 'sub' ],
321  'img_super' => [ '1', '超', 'super', 'sup' ],
322  'img_top' => [ '1', '顶部', 'top' ],
323  'img_text_top' => [ '1', '文字顶部', 'text-top' ],
324  'img_middle' => [ '1', '中间', 'middle' ],
325  'img_bottom' => [ '1', '底部', 'bottom' ],
326  'img_text_bottom' => [ '1', '文字底部', 'text-bottom' ],
327  'img_link' => [ '1', '链接=$1', 'link=$1' ],
328  'img_alt' => [ '1', '替代=$1', '替代文本=$1', 'alt=$1' ],
329  'img_class' => [ '1', '类=$1', 'class=$1' ],
330  'int' => [ '0', '界面:', 'INT:' ],
331  'sitename' => [ '1', '站点名称', 'SITENAME' ],
332  'ns' => [ '0', '名称空间:', 'NS:' ],
333  'nse' => [ '0', '名称空间E:', 'NSE:' ],
334  'localurl' => [ '0', '本地URL:', 'LOCALURL:' ],
335  'localurle' => [ '0', '本地URLE:', 'LOCALURLE:' ],
336  'articlepath' => [ '0', '条目路径', 'ARTICLEPATH' ],
337  'pageid' => [ '0', '页面ID', 'PAGEID' ],
338  'server' => [ '0', '服务器', 'SERVER' ],
339  'servername' => [ '0', '服务器名', 'SERVERNAME' ],
340  'scriptpath' => [ '0', '脚本路径', 'SCRIPTPATH' ],
341  'stylepath' => [ '0', '样式路径', 'STYLEPATH' ],
342  'grammar' => [ '0', '语法:', 'GRAMMAR:' ],
343  'gender' => [ '0', '性别:', 'GENDER:' ],
344  'notitleconvert' => [ '0', '__不转换标题__', '__NOTITLECONVERT__', '__NOTC__' ],
345  'nocontentconvert' => [ '0', '__不转换内容__', '__NOCONTENTCONVERT__', '__NOCC__' ],
346  'currentweek' => [ '1', '本周', 'CURRENTWEEK' ],
347  'currentdow' => [ '1', '当前DOW', 'CURRENTDOW' ],
348  'localweek' => [ '1', '本地周', 'LOCALWEEK' ],
349  'localdow' => [ '1', '本地DOW', 'LOCALDOW' ],
350  'revisionid' => [ '1', '修订ID', 'REVISIONID' ],
351  'revisionday' => [ '1', '修订日', 'REVISIONDAY' ],
352  'revisionday2' => [ '1', '修订日2', 'REVISIONDAY2' ],
353  'revisionmonth' => [ '1', '修订月', 'REVISIONMONTH' ],
354  'revisionmonth1' => [ '1', '修订月1', 'REVISIONMONTH1' ],
355  'revisionyear' => [ '1', '修订年', 'REVISIONYEAR' ],
356  'revisiontimestamp' => [ '1', '修订时间戳', 'REVISIONTIMESTAMP' ],
357  'revisionuser' => [ '1', '修订用户', 'REVISIONUSER' ],
358  'revisionsize' => [ '1', '修订大小', 'REVISIONSIZE' ],
359  'plural' => [ '0', '复数:', 'PLURAL:' ],
360  'fullurl' => [ '0', '完整URL:', 'FULLURL:' ],
361  'fullurle' => [ '0', '完整URL等同:', 'FULLURLE:' ],
362  'canonicalurl' => [ '0', '规范URL:', 'CANONICALURL:' ],
363  'canonicalurle' => [ '0', '规范URL等同:', 'CANONICALURLE:' ],
364  'lcfirst' => [ '0', '小写首字:', 'LCFIRST:' ],
365  'ucfirst' => [ '0', '大写首字:', 'UCFIRST:' ],
366  'lc' => [ '0', '小写:', 'LC:' ],
367  'uc' => [ '0', '大写:', 'UC:' ],
368  'raw' => [ '0', '原始:', 'RAW:' ],
369  'displaytitle' => [ '1', '显示标题', 'DISPLAYTITLE' ],
370  'newsectionlink' => [ '1', '__新段落链接__', '__NEWSECTIONLINK__' ],
371  'nonewsectionlink' => [ '1', '__无新段落链接__', '__NONEWSECTIONLINK__' ],
372  'currentversion' => [ '1', '当前版本', 'CURRENTVERSION' ],
373  'urlencode' => [ '0', 'URL编码:', 'URLENCODE:' ],
374  'anchorencode' => [ '0', '锚编码', 'ANCHORENCODE' ],
375  'currenttimestamp' => [ '1', '当前时间戳', 'CURRENTTIMESTAMP' ],
376  'localtimestamp' => [ '1', '本地时间戳', 'LOCALTIMESTAMP' ],
377  'directionmark' => [ '1', '方向标记', 'DIRECTIONMARK', 'DIRMARK' ],
378  'language' => [ '0', '#语言:', '#LANGUAGE:' ],
379  'contentlanguage' => [ '1', '内容语言', 'CONTENTLANGUAGE', 'CONTENTLANG' ],
380  'pagesinnamespace' => [ '1', '名字空间中页面数:', 'PAGESINNAMESPACE:', 'PAGESINNS:' ],
381  'numberofadmins' => [ '1', '管理员数', 'NUMBEROFADMINS' ],
382  'formatnum' => [ '0', '格式化数字', 'FORMATNUM' ],
383  'padleft' => [ '0', '左填充', 'PADLEFT' ],
384  'padright' => [ '0', '右填充', 'PADRIGHT' ],
385  'special' => [ '0', '特殊', 'special' ],
386  'speciale' => [ '0', '特殊等同', 'speciale' ],
387  'defaultsort' => [ '1', '默认排序:', '默认排序关键字:', '默认分类排序:', 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ],
388  'filepath' => [ '0', '文件路径:', 'FILEPATH:' ],
389  'tag' => [ '0', '标记', 'tag' ],
390  'hiddencat' => [ '1', '__隐藏分类__', '__HIDDENCAT__' ],
391  'pagesincategory' => [ '1', '分类中页面数', 'PAGESINCATEGORY', 'PAGESINCAT' ],
392  'pagesize' => [ '1', '页面大小', 'PAGESIZE' ],
393  'index' => [ '1', '__索引__', '__INDEX__' ],
394  'noindex' => [ '1', '__无索引__', '__NOINDEX__' ],
395  'numberingroup' => [ '1', '组中用户数', 'NUMBERINGROUP', 'NUMINGROUP' ],
396  'staticredirect' => [ '1', '__静态重定向__', '__STATICREDIRECT__' ],
397  'protectionlevel' => [ '1', '保护级别', 'PROTECTIONLEVEL' ],
398  'cascadingsources' => [ '1', '级联来源', 'CASCADINGSOURCES' ],
399  'formatdate' => [ '0', '格式化日期', '日期格式化', 'formatdate', 'dateformat' ],
400  'url_path' => [ '0', '路径', 'PATH' ],
401  'url_query' => [ '0', '查询', 'QUERY' ],
402  'defaultsort_noerror' => [ '0', '不报错', 'noerror' ],
403  'defaultsort_noreplace' => [ '0', '不替换', 'noreplace' ],
404  'displaytitle_noerror' => [ '0', '无错误', 'noerror' ],
405  'displaytitle_noreplace' => [ '0', '无代替', 'noreplace' ],
406  'pagesincategory_all' => [ '0', '所有', 'all' ],
407  'pagesincategory_pages' => [ '0', '页面', 'pages' ],
408  'pagesincategory_subcats' => [ '0', '子分类', 'subcats' ],
409  'pagesincategory_files' => [ '0', '文件', 'files' ],
410 ];
411 
412 $linkTrail = '/^()(.*)$/sD';
413 
415  'default',
416  'ISO 8601',
417 ];
420  'zh time' => 'H:i',
421  'zh date' => 'Y年n月j日 (l)',
422  'zh both' => 'Y年n月j日 (D) H:i',
423 ];
424 
426  'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
427  'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
428  '亚马逊' => 'https://www.amazon.com/exec/obidos/ISBN=$1',
429  '卓越亚马逊' => 'https://www.amazon.cn/mn/advancedSearchApp?isbn=$1',
430  '当当网' => 'http://search.dangdang.com/search.aspx?key=$1',
431  '博客来书店' => 'http://www.books.com.tw/exep/prod/booksfile.php?item=$1',
432  '三民书店' => 'http://www.sanmin.com.tw/page-qsearch.asp?ct=search_isbn&qu=$1',
433  '天下书店' => 'http://www.cwbook.com.tw/search/result1.jsp?field=2&keyWord=$1',
434  '新丝路书店' => 'http://www.silkbook.com/function/Search_list_book_data.asp?item=5&text=$1'
435 ];
$dateFormats
$dateFormats
Definition: MessagesZh_hans.php:419
$namespaceNames
$namespaceNames
Definition: MessagesZh_hans.php:85
NS_HELP
const NS_HELP
Definition: Defines.php:77
$linkTrail
$linkTrail
Definition: MessagesZh_hans.php:412
NS_TEMPLATE_TALK
const NS_TEMPLATE_TALK
Definition: Defines.php:76
NS_FILE
const NS_FILE
Definition: Defines.php:71
NS_TEMPLATE
const NS_TEMPLATE
Definition: Defines.php:75
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
NS_SPECIAL
const NS_SPECIAL
Definition: Defines.php:54
NS_MEDIAWIKI_TALK
const NS_MEDIAWIKI_TALK
Definition: Defines.php:74
NS_CATEGORY
const NS_CATEGORY
Definition: Defines.php:79
$defaultDateFormat
$defaultDateFormat
Definition: MessagesZh_hans.php:418
NS_USER_TALK
const NS_USER_TALK
Definition: Defines.php:68
$bookstoreList
$bookstoreList
Definition: MessagesZh_hans.php:425
NS_MEDIA
const NS_MEDIA
Definition: Defines.php:53
NS_PROJECT_TALK
const NS_PROJECT_TALK
Definition: Defines.php:70
$specialPageAliases
$specialPageAliases
Definition: MessagesZh_hans.php:134
NS_HELP_TALK
const NS_HELP_TALK
Definition: Defines.php:78
$fallback8bitEncoding
$fallback8bitEncoding
Definition: MessagesZh_hans.php:83
$datePreferences
$datePreferences
Definition: MessagesZh_hans.php:414
NS_USER
const NS_USER
Definition: Defines.php:67
$magicWords
$magicWords
Definition: MessagesZh_hans.php:248
NS_TALK
const NS_TALK
Definition: Defines.php:66
NS_MEDIAWIKI
const NS_MEDIAWIKI
Definition: Defines.php:73
NS_FILE_TALK
const NS_FILE_TALK
Definition: Defines.php:72
NS_CATEGORY_TALK
const NS_CATEGORY_TALK
Definition: Defines.php:80
$namespaceAliases
$namespaceAliases
Definition: MessagesZh_hans.php:104