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