1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
/*!
* Ext JS Library 3.0.3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
/*
* Traditional Chinese translation
* By hata1234
* 09 April 2007
*/
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">讀å?–ä¸...</div>';
if(Ext.View){
Ext.View.prototype.emptyText = "";
}
if(Ext.grid.GridPanel){
Ext.grid.GridPanel.prototype.ddText = "�擇了 {0} 行";
}
if(Ext.TabPanelItem){
Ext.TabPanelItem.prototype.closeText = "é—œé–‰æ¤æ¨™ç±¤";
}
if(Ext.form.Field){
Ext.form.Field.prototype.invalidText = "數值�符�欄��定";
}
if(Ext.LoadMask){
Ext.LoadMask.prototype.msg = "讀å?–ä¸...";
}
Date.monthNames = [
"一月",
"二月",
"三月",
"四月",
"五月",
"å…æœˆ",
"七月",
"八月",
"�月",
"å??月",
"å??一月",
"å??二月"
];
Date.dayNames = [
"æ—¥",
"一",
"二",
"三",
"å››",
"五",
"å…"
];
if(Ext.MessageBox){
Ext.MessageBox.buttonText = {
ok : "確定",
cancel : "�消",
yes : "是",
no : "å?¦"
};
}
if(Ext.util.Format){
Ext.util.Format.date = function(v, format){
if(!v) return "";
if(!(v instanceof Date)) v = new Date(Date.parse(v));
return v.dateFormat(format || "Y/m/d");
};
}
if(Ext.DatePicker){
Ext.apply(Ext.DatePicker.prototype, {
todayText : "今天",
minText : "æ—¥æœŸå¿…é ˆå¤§æ–¼æœ€å°?容許日期",
maxText : "æ—¥æœŸå¿…é ˆå°?於最大容許日期",
disabledDaysText : "",
disabledDatesText : "",
monthNames : Date.monthNames,
dayNames : Date.dayNames,
nextText : "下個月 (Ctrl+�方��)",
prevText : "上個月 (Ctrl+左方��)",
monthYearText : "�擇月份 (Ctrl+上/下方���擇年份)",
todayTip : "{0} (空白�)",
format : "y/m/d",
okText : "确定",
cancelText : "�消"
});
}
if(Ext.PagingToolbar){
Ext.apply(Ext.PagingToolbar.prototype, {
beforePageText : "第",
afterPageText : "é ?,共{0}é ?",
firstText : "第一é ?",
prevText : "上一é ?",
nextText : "下一é ?",
lastText : "最後é ?",
refreshText : "�新整�",
displayMsg : "顯示{0} - {1}ç†,å…±{2}ç†",
emptyMsg : '沒有任何資料'
});
}
if(Ext.form.TextField){
Ext.apply(Ext.form.TextField.prototype, {
minLengthText : "æ¤æ¬„ä½?最少è¦?輸入 {0} 個å—",
maxLengthText : "æ¤æ¬„ä½?最多輸入 {0} 個å—",
blankText : "æ¤æ¬„ä½?為必填",
regexText : "",
emptyText : null
});
}
if(Ext.form.NumberField){
Ext.apply(Ext.form.NumberField.prototype, {
minText : "æ¤æ¬„ä½?ä¹‹æ•¸å€¼å¿…é ˆå¤§æ–¼ {0}",
maxText : "æ¤æ¬„ä½?ä¹‹æ•¸å€¼å¿…é ˆå°?æ–¼ {0}",
nanText : "{0} ä¸?是å?ˆæ³•的數å—"
});
}
if(Ext.form.DateField){
Ext.apply(Ext.form.DateField.prototype, {
disabledDaysText : "無法使用",
disabledDatesText : "無法使用",
minText : "æ¤æ¬„ä½?ä¹‹æ—¥æœŸå¿…é ˆåœ¨ {0} 之後",
maxText : "æ¤æ¬„ä½?ä¹‹æ—¥æœŸå¿…é ˆåœ¨ {0} 之å‰?",
invalidText : "{0} ä¸?是æ£ç¢ºçš„æ—¥æœŸæ ¼å¼? - å¿…é ˆåƒ?是 「 {1} ã€? é€™æ¨£çš„æ ¼å¼?",
format : "Y/m/d"
});
}
if(Ext.form.ComboBox){
Ext.apply(Ext.form.ComboBox.prototype, {
loadingText : "讀å?–ä¸ ...",
valueNotFoundText : undefined
});
}
if(Ext.form.VTypes){
Ext.apply(Ext.form.VTypes, {
emailText : 'æ¤æ¬„ä½?å¿…é ˆè¼¸å…¥åƒ? "user@example.com" 之E-Mailæ ¼å¼?',
urlText : 'æ¤æ¬„ä½?å¿…é ˆè¼¸å…¥åƒ? "http:/'+'/www.example.com" 之網å?€æ ¼å¼?',
alphaText : 'æ¤æ¬„ä½?僅能輸入å?Šå½¢è‹±æ–‡å—æ¯?å?Šåº•ç·š( _ )符號',
alphanumText : 'æ¤æ¬„ä½?僅能輸入å?Šå½¢è‹±æ–‡å—æ¯?ã€?數å—å?Šåº•ç·š( _ )符號'
});
}
if(Ext.grid.GridView){
Ext.apply(Ext.grid.GridView.prototype, {
sortAscText : "æ£å?‘排åº?",
sortDescText : "å??å?‘排åº?",
lockText : "鎖定欄�",
unlockText : "解開欄�鎖定",
columnsText : "欄�"
});
}
if(Ext.grid.PropertyColumnModel){
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
nameText : "å??稱",
valueText : "數值",
dateFormat : "Y/m/d"
});
}
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
splitTip : "拖曳縮放大�.",
collapsibleSplitTip : "拖曳縮放大å°?. æ»‘é¼ é›™æ“Šéš±è—?."
});
}
|