* (bug 5432) Fix inconsistencies in cookie names when using table prefixes
[mediawiki.git] / languages / LanguageZh_tw.php
bloba55f04461796a972f1ddbdd9a5e4d1b00186e679
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Language
5 */
6 require_once( "LanguageUtf8.php" );
7 require_once( "LanguageZh_cn.php" );
9 /* private */ $wgNamespaceNamesZh_tw = array(
10 NS_MEDIA => "媒體",
11 NS_SPECIAL => "特殊",
12 NS_MAIN => "",
13 NS_TALK => "討論",
14 NS_USER => "用戶",
15 NS_USER_TALK => "用戶討論",
16 NS_PROJECT => $wgMetaNamespace,
17 NS_PROJECT_TALK => $wgMetaNamespace . "討論",
18 NS_IMAGE => "圖像",
19 NS_IMAGE_TALK => "圖像討論",
20 NS_MEDIAWIKI => "媒體維基",
21 NS_MEDIAWIKI_TALK => "媒體維基討論",
22 NS_TEMPLATE => "樣板",
23 NS_TEMPLATE_TALK => "樣板討論",
24 NS_HELP => "幫助",
25 NS_HELP_TALK => "幫助討論",
26 NS_CATEGORY => "分類",
27 NS_CATEGORY_TALK => "分類討論"
30 /* private */ $wgQuickbarSettingsZh_tw = array(
31 "無", /* "None" */
32 "左側固定", /* "Fixed left" */
33 "右側固定", /* "Fixed right" */
34 "左側漂移" /* "Floating left" */
37 /* private */ $wgSkinNamesZh_tw = array(
38 "標準",/* "Standard" */
39 "懷舊",/* "Nostalgia" */
40 "科隆香水藍" /* "Cologne Blue" */
41 ) + $wgSkinNamesEn;
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; }
72 # Aliases
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; }
77 return false;
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];
94 else
95 return parent::getMessage( $key );