2009-01-21 15:04:46 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
/** Literary Chinese (文言)
|
|
|
|
|
|
*
|
|
|
|
|
|
* @file
|
2022-06-22 22:37:31 +00:00
|
|
|
|
* @ingroup Languages
|
2009-01-21 15:04:46 +00:00
|
|
|
|
*
|
2013-06-27 19:35:40 +00:00
|
|
|
|
* @author C933103
|
2009-01-21 15:04:46 +00:00
|
|
|
|
* @author Itsmine
|
2012-06-07 18:29:09 +00:00
|
|
|
|
* @author Justincheng12345
|
2009-01-21 15:04:46 +00:00
|
|
|
|
* @author Omnipaedista
|
2009-07-14 13:47:58 +00:00
|
|
|
|
* @author Shinjiman
|
2012-11-22 20:27:19 +00:00
|
|
|
|
* @author Simon Shek
|
2013-07-04 19:58:00 +00:00
|
|
|
|
* @author StephDC
|
2012-09-23 18:59:42 +00:00
|
|
|
|
* @author Super Wang
|
2021-07-07 15:33:53 +00:00
|
|
|
|
* @author Winston Sung
|
2013-12-11 20:17:32 +00:00
|
|
|
|
* @author Xiaomingyan
|
2013-07-21 19:04:25 +00:00
|
|
|
|
* @author Yanteng3
|
2009-01-21 15:04:46 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
2021-07-07 15:33:53 +00:00
|
|
|
|
$fallback = 'zh-hant, zh, zh-hans'; // T125373, T278639, T286291
|
2016-08-02 09:27:55 +00:00
|
|
|
|
|
2020-10-30 08:59:17 +00:00
|
|
|
|
/** @phpcs-require-sorted-array */
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$specialPageAliases = [
|
|
|
|
|
|
'Activeusers' => [ '躍簿' ],
|
|
|
|
|
|
'Allmessages' => [ '官話' ],
|
|
|
|
|
|
'Allpages' => [ '全典' ],
|
|
|
|
|
|
'Ancientpages' => [ '陳年' ],
|
|
|
|
|
|
'Blankpage' => [ '白頁' ],
|
2020-10-30 08:59:17 +00:00
|
|
|
|
'BlockList' => [ '列禁簿、禁址' ],
|
2016-02-17 09:09:32 +00:00
|
|
|
|
'Booksources' => [ '書海' ],
|
|
|
|
|
|
'BrokenRedirects' => [ '斷渡' ],
|
|
|
|
|
|
'Categories' => [ '類' ],
|
|
|
|
|
|
'ChangeEmail' => [ '易郵' ],
|
|
|
|
|
|
'ChangePassword' => [ '易符節' ],
|
|
|
|
|
|
'ComparePages' => [ '較頁' ],
|
|
|
|
|
|
'Confirmemail' => [ '核郵驛' ],
|
|
|
|
|
|
'Contributions' => [ '功績' ],
|
|
|
|
|
|
'CreateAccount' => [ '增簿' ],
|
|
|
|
|
|
'Deadendpages' => [ '此無路也' ],
|
|
|
|
|
|
'DeletedContributions' => [ '已刪之積' ],
|
|
|
|
|
|
'Diff' => [ '異' ],
|
|
|
|
|
|
'DoubleRedirects' => [ '窮渡' ],
|
|
|
|
|
|
'EditWatchlist' => [ '治哨站' ],
|
|
|
|
|
|
'Emailuser' => [ '遺書' ],
|
|
|
|
|
|
'Export' => [ '出匯' ],
|
|
|
|
|
|
'Fewestrevisions' => [ '鮮察' ],
|
|
|
|
|
|
'FileDuplicateSearch' => [ '擇重檔' ],
|
|
|
|
|
|
'Filepath' => [ '檔路' ],
|
|
|
|
|
|
'Import' => [ '圖入匯' ],
|
|
|
|
|
|
'Invalidateemail' => [ '消核郵驛' ],
|
|
|
|
|
|
'LinkSearch' => [ '尋網連' ],
|
|
|
|
|
|
'Listfiles' => [ '見檔' ],
|
|
|
|
|
|
'Listgrouprights' => [ '權任一覽' ],
|
|
|
|
|
|
'Listredirects' => [ '表轉' ],
|
|
|
|
|
|
'Listusers' => [ '點簿' ],
|
|
|
|
|
|
'Lockdb' => [ '閉庫' ],
|
|
|
|
|
|
'Log' => [ '誌' ],
|
|
|
|
|
|
'Lonelypages' => [ '孤寡' ],
|
|
|
|
|
|
'Longpages' => [ '長言' ],
|
|
|
|
|
|
'MergeHistory' => [ '併頁之誌' ],
|
|
|
|
|
|
'MIMEsearch' => [ '篩檔' ],
|
|
|
|
|
|
'Mostcategories' => [ '跨船' ],
|
|
|
|
|
|
'Mostimages' => [ '名檔' ],
|
|
|
|
|
|
'Mostlinked' => [ '好料' ],
|
|
|
|
|
|
'Mostlinkedcategories' => [ '豪門' ],
|
|
|
|
|
|
'Mostlinkedtemplates' => [ '美模' ],
|
|
|
|
|
|
'Mostrevisions' => [ '屢審' ],
|
|
|
|
|
|
'Movepage' => [ '遷' ],
|
|
|
|
|
|
'Mycontributions' => [ '吾績' ],
|
|
|
|
|
|
'Mypage' => [ '吾頁' ],
|
|
|
|
|
|
'Mytalk' => [ '吾書房' ],
|
|
|
|
|
|
'Newimages' => [ '新圖之廊' ],
|
|
|
|
|
|
'Newpages' => [ '新灶' ],
|
|
|
|
|
|
'Preferences' => [ '簿註' ],
|
|
|
|
|
|
'Prefixindex' => [ '依名索引' ],
|
|
|
|
|
|
'Protectedpages' => [ '頁錮' ],
|
|
|
|
|
|
'Randompage' => [ '清風翻書' ],
|
|
|
|
|
|
'Randomredirect' => [ '任渡' ],
|
2018-01-06 06:26:17 +00:00
|
|
|
|
'Recentchanges' => [ '監修', '近易' ],
|
2016-02-17 09:09:32 +00:00
|
|
|
|
'Recentchangeslinked' => [ '援引' ],
|
|
|
|
|
|
'Search' => [ '尋' ],
|
|
|
|
|
|
'Shortpages' => [ '短篇' ],
|
|
|
|
|
|
'Specialpages' => [ '特查' ],
|
|
|
|
|
|
'Statistics' => [ '彙統' ],
|
|
|
|
|
|
'Uncategorizedcategories' => [ '問栓' ],
|
|
|
|
|
|
'Uncategorizedimages' => [ '候裱' ],
|
|
|
|
|
|
'Uncategorizedpages' => [ '欲訂' ],
|
|
|
|
|
|
'Uncategorizedtemplates' => [ '待蘸' ],
|
|
|
|
|
|
'Undelete' => [ '覽刪' ],
|
|
|
|
|
|
'Unlockdb' => [ '開庫' ],
|
|
|
|
|
|
'Unusedcategories' => [ '樞鏽' ],
|
|
|
|
|
|
'Unusedimages' => [ '色褪' ],
|
|
|
|
|
|
'Unusedtemplates' => [ '墨乾' ],
|
|
|
|
|
|
'Unwatchedpages' => [ '無哨頁' ],
|
|
|
|
|
|
'Upload' => [ '進獻' ],
|
|
|
|
|
|
'UploadStash' => [ '貢貯' ],
|
|
|
|
|
|
'Userlogin' => [ '登簿' ],
|
|
|
|
|
|
'Userlogout' => [ '去簿' ],
|
|
|
|
|
|
'Userrights' => [ '秉治權任' ],
|
|
|
|
|
|
'Version' => [ '版' ],
|
|
|
|
|
|
'Wantedcategories' => [ '求門' ],
|
|
|
|
|
|
'Wantedfiles' => [ '求檔' ],
|
|
|
|
|
|
'Wantedpages' => [ '徵頁' ],
|
|
|
|
|
|
'Wantedtemplates' => [ '徵模' ],
|
|
|
|
|
|
'Watchlist' => [ '哨站' ],
|
|
|
|
|
|
'Whatlinkshere' => [ '取佐' ],
|
|
|
|
|
|
'Withoutinterwiki' => [ '孤語' ],
|
|
|
|
|
|
];
|
2012-05-22 20:00:56 +00:00
|
|
|
|
|
2009-01-21 15:04:46 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* A list of date format preference keys which can be selected in user
|
|
|
|
|
|
* preferences. New preference keys can be added, provided they are supported
|
|
|
|
|
|
* by the language class's timeanddate(). Only the 5 keys listed below are
|
|
|
|
|
|
* supported by the wikitext converter (DateFormatter.php).
|
|
|
|
|
|
*
|
|
|
|
|
|
* The special key "default" is an alias for either dmy or mdy depending on
|
|
|
|
|
|
* $wgAmericanDates
|
|
|
|
|
|
*/
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$datePreferences = [
|
2009-01-21 15:04:46 +00:00
|
|
|
|
'default',
|
|
|
|
|
|
'ISO 8601',
|
2016-02-17 09:09:32 +00:00
|
|
|
|
];
|
2009-01-21 15:04:46 +00:00
|
|
|
|
|
|
|
|
|
|
$defaultDateFormat = 'zh';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* These are formats for dates generated by MediaWiki (as opposed to the wikitext
|
|
|
|
|
|
* DateFormatter). Documentation for the format string can be found in
|
|
|
|
|
|
* Language.php, search for sprintfDate.
|
|
|
|
|
|
*
|
|
|
|
|
|
* This array is automatically inherited by all subclasses. Individual keys can be
|
|
|
|
|
|
* overridden.
|
|
|
|
|
|
*/
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$dateFormats = [
|
2014-07-20 19:41:41 +00:00
|
|
|
|
'zh time' => 'H時i分',
|
|
|
|
|
|
'zh date' => 'Y年n月j日 (l)',
|
|
|
|
|
|
'zh both' => 'Y年n月j日 (D) H時i分',
|
2016-02-17 09:09:32 +00:00
|
|
|
|
];
|
2009-01-21 15:04:46 +00:00
|
|
|
|
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$digitTransformTable = [
|
2009-01-21 15:04:46 +00:00
|
|
|
|
'0' => '〇',
|
|
|
|
|
|
'1' => '一',
|
|
|
|
|
|
'2' => '二',
|
|
|
|
|
|
'3' => '三',
|
|
|
|
|
|
'4' => '四',
|
|
|
|
|
|
'5' => '五',
|
|
|
|
|
|
'6' => '六',
|
|
|
|
|
|
'7' => '七',
|
|
|
|
|
|
'8' => '八',
|
|
|
|
|
|
'9' => '九',
|
2017-11-24 15:49:15 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
$separatorTransformTable = [
|
2009-01-21 15:04:46 +00:00
|
|
|
|
'.' => '點',
|
|
|
|
|
|
',' => '',
|
2016-02-17 09:09:32 +00:00
|
|
|
|
];
|