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