Upgrade to ExtJS 3.2.1 - Released 04/27/2010
[extjs.git] / src / locale / ext-lang-zh_TW.js
1 /*!
2  * Ext JS Library 3.2.1
3  * Copyright(c) 2006-2010 Ext JS, Inc.
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /*
8  * Traditional Chinese translation
9  * By hata1234
10  * 09 April 2007
11  */
12
13 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">讀取中...</div>';
14
15 if(Ext.View){
16     Ext.View.prototype.emptyText = "";
17 }
18
19 if(Ext.grid.GridPanel){
20     Ext.grid.GridPanel.prototype.ddText = "選擇了 {0} 行";
21 }
22
23 if(Ext.TabPanelItem){
24     Ext.TabPanelItem.prototype.closeText = "關閉此標籤";
25 }
26
27 if(Ext.form.Field){
28     Ext.form.Field.prototype.invalidText = "數值不符合欄位規定";
29 }
30
31 if(Ext.LoadMask){
32     Ext.LoadMask.prototype.msg = "讀取中...";
33 }
34
35 Date.monthNames = [
36     "一月",
37     "二月",
38     "三月",
39     "四月",
40     "五月",
41     "六月",
42     "七月",
43     "八月",
44     "九月",
45     "十月",
46     "十一月",
47     "十二月"
48 ];
49
50 Date.dayNames = [
51     "日",
52     "一",
53     "二",
54     "三",
55     "四",
56     "五",
57     "六"
58 ];
59
60 if(Ext.MessageBox){
61     Ext.MessageBox.buttonText = {
62         ok : "確定",
63         cancel : "取消",
64         yes : "是",
65         no : "否"
66     };
67 }
68
69 if(Ext.util.Format){
70     Ext.util.Format.date = function(v, format){
71        if(!v) return "";
72        if(!(v instanceof Date)) v = new Date(Date.parse(v));
73        return v.dateFormat(format || "Y/m/d");
74     };
75 }
76
77 if(Ext.DatePicker){
78     Ext.apply(Ext.DatePicker.prototype, {
79        todayText         : "今天",
80        minText           : "日期必須大於最小容許日期",
81        maxText           : "日期必須小於最大容許日期",
82        disabledDaysText  : "",
83        disabledDatesText : "",
84        monthNames        : Date.monthNames,
85        dayNames          : Date.dayNames,
86        nextText          : "下個月 (Ctrl+右方向鍵)",
87        prevText          : "上個月 (Ctrl+左方向鍵)",
88        monthYearText     : "選擇月份 (Ctrl+上/下方向鍵選擇年份)",
89        todayTip          : "{0} (空白鍵)",
90        format            : "y/m/d",
91        okText            : "确定",
92        cancelText        : "取消"
93     });
94 }
95
96 if(Ext.PagingToolbar){
97     Ext.apply(Ext.PagingToolbar.prototype, {
98        beforePageText : "第",
99        afterPageText  : "頁,共{0}頁",
100        firstText      : "第一頁",
101        prevText       : "上一頁",
102        nextText       : "下一頁",
103        lastText       : "最後頁",
104        refreshText    : "重新整理",
105        displayMsg     : "顯示{0} - {1}筆,共{2}筆",
106        emptyMsg       : '沒有任何資料'
107     });
108 }
109
110 if(Ext.form.TextField){
111     Ext.apply(Ext.form.TextField.prototype, {
112        minLengthText : "此欄位最少要輸入 {0} 個字",
113        maxLengthText : "此欄位最多輸入 {0} 個字",
114        blankText     : "此欄位為必填",
115        regexText     : "",
116        emptyText     : null
117     });
118 }
119
120 if(Ext.form.NumberField){
121     Ext.apply(Ext.form.NumberField.prototype, {
122        minText : "此欄位之數值必須大於 {0}",
123        maxText : "此欄位之數值必須小於 {0}",
124        nanText : "{0} 不是合法的數字"
125     });
126 }
127
128 if(Ext.form.DateField){
129     Ext.apply(Ext.form.DateField.prototype, {
130        disabledDaysText  : "無法使用",
131        disabledDatesText : "無法使用",
132        minText           : "此欄位之日期必須在 {0} 之後",
133        maxText           : "此欄位之日期必須在 {0} 之前",
134        invalidText       : "{0} 不是正確的日期格式 - 必須像是 「 {1} 」 這樣的格式",
135        format            : "Y/m/d"
136     });
137 }
138
139 if(Ext.form.ComboBox){
140     Ext.apply(Ext.form.ComboBox.prototype, {
141        loadingText       : "讀取中 ...",
142        valueNotFoundText : undefined
143     });
144 }
145
146 if(Ext.form.VTypes){
147     Ext.apply(Ext.form.VTypes, {
148        emailText    : '此欄位必須輸入像 "user@example.com" 之E-Mail格式',
149        urlText      : '此欄位必須輸入像 "http:/'+'/www.example.com" 之網址格式',
150        alphaText    : '此欄位僅能輸入半形英文字母及底線( _ )符號',
151        alphanumText : '此欄位僅能輸入半形英文字母、數字及底線( _ )符號'
152     });
153 }
154
155 if(Ext.grid.GridView){
156     Ext.apply(Ext.grid.GridView.prototype, {
157        sortAscText  : "正向排序",
158        sortDescText : "反向排序",
159        lockText     : "鎖定欄位",
160        unlockText   : "解開欄位鎖定",
161        columnsText  : "欄位"
162     });
163 }
164
165 if(Ext.grid.PropertyColumnModel){
166     Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
167        nameText   : "名稱",
168        valueText  : "數值",
169        dateFormat : "Y/m/d"
170     });
171 }
172
173 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
174     Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
175        splitTip            : "拖曳縮放大小.",
176        collapsibleSplitTip : "拖曳縮放大小. 滑鼠雙擊隱藏."
177     });
178 }