6 require_once( "LanguageUtf8.php" );
7 require_once( "LanguageZh_cn.php" );
9 /* private */ $wgNamespaceNamesZh_tw = array(
15 NS_USER_TALK
=> "用戶討論",
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> $wgMetaNamespace . "討論",
19 NS_IMAGE_TALK
=> "圖像討論",
20 NS_MEDIAWIKI
=> "媒體維基",
21 NS_MEDIAWIKI_TALK
=> "媒體維基討論",
23 NS_TEMPLATE_TALK
=> "樣板討論",
25 NS_HELP_TALK
=> "幫助討論",
27 NS_CATEGORY_TALK
=> "分類討論"
30 /* private */ $wgQuickbarSettingsZh_tw = array(
32 "左側固定", /* "Fixed left" */
33 "右側固定", /* "Fixed right" */
34 "左側漂移" /* "Floating left" */
37 /* private */ $wgSkinNamesZh_tw = array(
39 "懷舊",/* "Nostalgia" */
40 "科隆香水藍" /* "Cologne Blue" */
43 /* private */ $wgBookstoreListZh_tw = array(
44 "博客來書店" => "http://www.books.com.tw/exep/openfind_book_keyword.php?cat1=4&key1=$1",
45 "三民書店" => "http://www.sanmin.com.tw/page-qsearch.asp?ct=search_isbn&qu=$1",
46 "天下書店" => "http://www.cwbook.com.tw/cw/TS.jsp?schType=product.isbn&schStr=$1",
47 "新絲書店" => "http://www.silkbook.com/function/Search_List_Book.asp?item=5&text=$1"
50 if (!$wgCachedMessageArrays) {
51 require_once('MessagesZh_tw.php');
54 class LanguageZh_tw
extends LanguageZh_cn
{
55 function getBookstoreList () {
56 global $wgBookstoreListZh_tw ;
57 return $wgBookstoreListZh_tw ;
60 function getNamespaces() {
61 global $wgNamespaceNamesZh_tw;
62 return $wgNamespaceNamesZh_tw;
66 function getNsIndex( $text ) {
67 global $wgNamespaceNamesZh_tw;
69 foreach ( $wgNamespaceNamesZh_tw as $i => $n ) {
70 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
73 if ( 0 == strcasecmp( "對話", $text ) ) { return 1; }
74 if ( 0 == strcasecmp( "用戶對話", $text ) ) { return 3; }
75 if ( 0 == strcasecmp( "維基百科對話", $text ) ) { return 5; }
76 if ( 0 == strcasecmp( "圖像對話", $text ) ) { return 7; }
80 function getQuickbarSettings() {
81 global $wgQuickbarSettingsZh_tw;
82 return $wgQuickbarSettingsZh_tw;
85 function getSkinNames() {
86 global $wgSkinNamesZh_tw;
87 return $wgSkinNamesZh_tw;
90 function getMessage( $key ) {
91 global $wgAllMessagesZh_tw;
92 if(array_key_exists($key, $wgAllMessagesZh_tw))
93 return $wgAllMessagesZh_tw[$key];
95 return parent
::getMessage( $key );