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