1 | /*! |
---|
2 | * Ext JS Library 3.4.0 |
---|
3 | * Copyright(c) 2006-2011 Sencha Inc. |
---|
4 | * licensing@sencha.com |
---|
5 | * http://www.sencha.com/license |
---|
6 | */ |
---|
7 | /** |
---|
8 | * List compiled by KillerNay on the extjs.com forums. |
---|
9 | * Thank you KillerNay! |
---|
10 | * |
---|
11 | * Thailand Translations |
---|
12 | */ |
---|
13 | |
---|
14 | Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">¡ÃÃ
çâÃÃ
Ŝ...</div>'; |
---|
15 | |
---|
16 | if(Ext.View){ |
---|
17 | Ext.View.prototype.emptyText = ""; |
---|
18 | } |
---|
19 | |
---|
20 | if(Ext.grid.GridPanel){ |
---|
21 | Ext.grid.GridPanel.prototype.ddText = "{0} Ã Ã
ÃááÃ
é÷Ãé§ÃÃŜá¶Ã"; |
---|
22 | } |
---|
23 | |
---|
24 | if(Ext.TabPanelItem){ |
---|
25 | Ext.TabPanelItem.prototype.closeText = "»ÃŜá·çº¹Ãé"; |
---|
26 | } |
---|
27 | |
---|
28 | if(Ext.form.Field){ |
---|
29 | Ext.form.Field.prototype.invalidText = "â¬ÃšÃ¢Ã§ªÚç¹ÃéÀÃڶáµéç"; |
---|
30 | } |
---|
31 | |
---|
32 | if(Ext.LoadMask){ |
---|
33 | Ext.LoadMask.prototype.msg = "¡ÃÃ
çâÃÃ
Ŝ..."; |
---|
34 | } |
---|
35 | |
---|
36 | Date.monthNames = [ |
---|
37 | "áÃÃâ¬Ã", |
---|
38 | "¡ÃÃÅžÃÃŞùşì", |
---|
39 | "ÃùÃâ¬Ã", |
---|
40 | "à ÃÃÃù", |
---|
41 | "ÅžÃÃÃÃâ¬Ã", |
---|
42 | "ÃöùÃù", |
---|
43 | "¡Ã¡¯Ãâ¬Ã", |
---|
44 | "ÃçÃÃâ¬Ã", |
---|
45 | "¡Ã¹ÃÃù", |
---|
46 | "µÃÃ
Ãâ¬Ã", |
---|
47 | "ÅžÃÚáÃù", |
---|
48 | "şùÃÃâ¬Ã" |
---|
49 | ]; |
---|
50 | |
---|
51 | Date.getShortMonthName = function(month) { |
---|
52 | return Date.monthNames[month].substring(0, 3); |
---|
53 | }; |
---|
54 | |
---|
55 | Date.monthNumbers = { |
---|
56 | "Ãâ¬" : 0, |
---|
57 | "¡Ş" : 1, |
---|
58 | "ÃÃâ¬" : 2, |
---|
59 | "Ã ÃÃ" : 3, |
---|
60 | "Åžâ¬" : 4, |
---|
61 | "ÃÃÃ" : 5, |
---|
62 | "¡â¬" : 6, |
---|
63 | "Ãâ¬" : 7, |
---|
64 | "¡Ã" : 8, |
---|
65 | "惪" : 9, |
---|
66 | "ÅžÃ" : 10, |
---|
67 | "ÅŸâ¬" : 11 |
---|
68 | }; |
---|
69 | |
---|
70 | Date.getMonthNumber = function(name) { |
---|
71 | return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; |
---|
72 | }; |
---|
73 | |
---|
74 | Date.dayNames = [ |
---|
75 | "Ã÷õÃì", |
---|
76 | "šù·Ãì", |
---|
77 | "Ãçâ¬ÃÃ", |
---|
78 | "ÅžÃÃÅŸ", |
---|
79 | "ÅžÃÃÃúŜÃ", |
---|
80 | "̇̓", |
---|
81 | "à ÃÃÃì" |
---|
82 | ]; |
---|
83 | |
---|
84 | Date.getShortDayName = function(day) { |
---|
85 | return Date.dayNames[day].substring(0, 3); |
---|
86 | }; |
---|
87 | |
---|
88 | if(Ext.MessageBox){ |
---|
89 | Ext.MessageBox.buttonText = { |
---|
90 | ok : "µ¡Ã
§", |
---|
91 | cancel : "áà Ã
á", |
---|
92 | yes : "ãªÚ", |
---|
93 | no : "ÀÃÚãªÚ" |
---|
94 | }; |
---|
95 | } |
---|
96 | |
---|
97 | if(Ext.util.Format){ |
---|
98 | Ext.util.Format.date = function(v, format){ |
---|
99 | if(!v) return ""; |
---|
100 | if(!(v instanceof Date)) v = new Date(Date.parse(v)); |
---|
101 | return v.dateFormat(format || "m/d/Y"); |
---|
102 | }; |
---|
103 | } |
---|
104 | |
---|
105 | if(Ext.DatePicker){ |
---|
106 | Ext.apply(Ext.DatePicker.prototype, { |
---|
107 | todayText : "Ãù¹Ãé", |
---|
108 | minText : "This date is before the minimum date", |
---|
109 | maxText : "This date is after the maximum date", |
---|
110 | disabledDaysText : "", |
---|
111 | disabledDatesText : "", |
---|
112 | monthNames : Date.monthNames, |
---|
113 | dayNames : Date.dayNames, |
---|
114 | nextText : 'à ŜÃù¶ÃŜÀ» (Control+Right)', |
---|
115 | prevText : 'à ŜÃù¡Úùùéà (Control+Left)', |
---|
116 | monthYearText : 'Ã Ã
Ãáà ŜÃù (Control+Up/Down to move years)', |
---|
117 | todayTip : "{0} (Spacebar)", |
---|
118 | format : "m/d/y", |
---|
119 | okText : " ÂµÂ¡Ã
§ ", |
---|
120 | cancelText : "áà Ã
á", |
---|
121 | startDay : 0 |
---|
122 | }); |
---|
123 | } |
---|
124 | |
---|
125 | if(Ext.PagingToolbar){ |
---|
126 | Ext.apply(Ext.PagingToolbar.prototype, { |
---|
127 | beforePageText : "ùéÃ", |
---|
128 | afterPageText : "of {0}", |
---|
129 | firstText : "ùéÃáá", |
---|
130 | prevText : "¡ÚùùéÃ", |
---|
131 | nextText : "¶ÃŜÀ»", |
---|
132 | lastText : "ùéÃÃÃŜ·éÃÃ", |
---|
133 | refreshText : "ÃÃà ¿Ãª", |
---|
134 | displayMsg : "¡ÃÃ
çáÃŜ§ {0} - {1} šá {2}", |
---|
135 | emptyMsg : 'ÀÃÚÃâéÃÃÃÃ
áÃŜ§' |
---|
136 | }); |
---|
137 | } |
---|
138 | |
---|
139 | if(Ext.form.TextField){ |
---|
140 | Ext.apply(Ext.form.TextField.prototype, { |
---|
141 | minLengthText : "The minimum length for this field is {0}", |
---|
142 | maxLengthText : "The maximum length for this field is {0}", |
---|
143 | blankText : "This field is required", |
---|
144 | regexText : "", |
---|
145 | emptyText : null |
---|
146 | }); |
---|
147 | } |
---|
148 | |
---|
149 | if(Ext.form.NumberField){ |
---|
150 | Ext.apply(Ext.form.NumberField.prototype, { |
---|
151 | minText : "The minimum value for this field is {0}", |
---|
152 | maxText : "The maximum value for this field is {0}", |
---|
153 | nanText : "{0} is not a valid number" |
---|
154 | }); |
---|
155 | } |
---|
156 | |
---|
157 | if(Ext.form.DateField){ |
---|
158 | Ext.apply(Ext.form.DateField.prototype, { |
---|
159 | disabledDaysText : "»ÃÅœ", |
---|
160 | disabledDatesText : "»ÃÅœ", |
---|
161 | minText : "The date in this field must be after {0}", |
---|
162 | maxText : "The date in this field must be before {0}", |
---|
163 | invalidText : "{0} is not a valid date - it must be in the format {1}", |
---|
164 | format : "m/d/y", |
---|
165 | altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d", |
---|
166 | startDay : 0 |
---|
167 | }); |
---|
168 | } |
---|
169 | |
---|
170 | if(Ext.form.ComboBox){ |
---|
171 | Ext.apply(Ext.form.ComboBox.prototype, { |
---|
172 | loadingText : "¡ÃÃ
çâÃÃ
Ŝ...", |
---|
173 | valueNotFoundText : undefined |
---|
174 | }); |
---|
175 | } |
---|
176 | |
---|
177 | if(Ext.form.VTypes){ |
---|
178 | Ext.apply(Ext.form.VTypes, { |
---|
179 | emailText : 'This field should be an e-mail address in the format "user@example.com"', |
---|
180 | urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"', |
---|
181 | alphaText : 'This field should only contain letters and _', |
---|
182 | alphanumText : 'This field should only contain letters, numbers and _' |
---|
183 | }); |
---|
184 | } |
---|
185 | |
---|
186 | if(Ext.form.HtmlEditor){ |
---|
187 | Ext.apply(Ext.form.HtmlEditor.prototype, { |
---|
188 | createLinkText : 'Please enter the URL for the link:', |
---|
189 | buttonTips : { |
---|
190 | bold : { |
---|
191 | title: 'Bold (Ctrl+B)', |
---|
192 | text: 'Make the selected text bold.', |
---|
193 | cls: 'x-html-editor-tip' |
---|
194 | }, |
---|
195 | italic : { |
---|
196 | title: 'Italic (Ctrl+I)', |
---|
197 | text: 'Make the selected text italic.', |
---|
198 | cls: 'x-html-editor-tip' |
---|
199 | }, |
---|
200 | underline : { |
---|
201 | title: 'Underline (Ctrl+U)', |
---|
202 | text: 'Underline the selected text.', |
---|
203 | cls: 'x-html-editor-tip' |
---|
204 | }, |
---|
205 | increasefontsize : { |
---|
206 | title: 'Grow Text', |
---|
207 | text: 'Increase the font size.', |
---|
208 | cls: 'x-html-editor-tip' |
---|
209 | }, |
---|
210 | decreasefontsize : { |
---|
211 | title: 'Shrink Text', |
---|
212 | text: 'Decrease the font size.', |
---|
213 | cls: 'x-html-editor-tip' |
---|
214 | }, |
---|
215 | backcolor : { |
---|
216 | title: 'Text Highlight Color', |
---|
217 | text: 'Change the background color of the selected text.', |
---|
218 | cls: 'x-html-editor-tip' |
---|
219 | }, |
---|
220 | forecolor : { |
---|
221 | title: 'Font Color', |
---|
222 | text: 'Change the color of the selected text.', |
---|
223 | cls: 'x-html-editor-tip' |
---|
224 | }, |
---|
225 | justifyleft : { |
---|
226 | title: 'Align Text Left', |
---|
227 | text: 'Align text to the left.', |
---|
228 | cls: 'x-html-editor-tip' |
---|
229 | }, |
---|
230 | justifycenter : { |
---|
231 | title: 'Center Text', |
---|
232 | text: 'Center text in the editor.', |
---|
233 | cls: 'x-html-editor-tip' |
---|
234 | }, |
---|
235 | justifyright : { |
---|
236 | title: 'Align Text Right', |
---|
237 | text: 'Align text to the right.', |
---|
238 | cls: 'x-html-editor-tip' |
---|
239 | }, |
---|
240 | insertunorderedlist : { |
---|
241 | title: 'Bullet List', |
---|
242 | text: 'Start a bulleted list.', |
---|
243 | cls: 'x-html-editor-tip' |
---|
244 | }, |
---|
245 | insertorderedlist : { |
---|
246 | title: 'Numbered List', |
---|
247 | text: 'Start a numbered list.', |
---|
248 | cls: 'x-html-editor-tip' |
---|
249 | }, |
---|
250 | createlink : { |
---|
251 | title: 'Hyperlink', |
---|
252 | text: 'Make the selected text a hyperlink.', |
---|
253 | cls: 'x-html-editor-tip' |
---|
254 | }, |
---|
255 | sourceedit : { |
---|
256 | title: 'Source Edit', |
---|
257 | text: 'Switch to source editing mode.', |
---|
258 | cls: 'x-html-editor-tip' |
---|
259 | } |
---|
260 | } |
---|
261 | }); |
---|
262 | } |
---|
263 | |
---|
264 | if(Ext.grid.GridView){ |
---|
265 | Ext.apply(Ext.grid.GridView.prototype, { |
---|
266 | sortAscText : "Sort Ascending", |
---|
267 | sortDescText : "Sort Descending", |
---|
268 | lockText : "Lock Column", |
---|
269 | unlockText : "Unlock Column", |
---|
270 | columnsText : "Columns" |
---|
271 | }); |
---|
272 | } |
---|
273 | |
---|
274 | if(Ext.grid.GroupingView){ |
---|
275 | Ext.apply(Ext.grid.GroupingView.prototype, { |
---|
276 | emptyGroupText : '(None)', |
---|
277 | groupByText : 'Group By This Field', |
---|
278 | showGroupsText : 'Show in Groups' |
---|
279 | }); |
---|
280 | } |
---|
281 | |
---|
282 | if(Ext.grid.PropertyColumnModel){ |
---|
283 | Ext.apply(Ext.grid.PropertyColumnModel.prototype, { |
---|
284 | nameText : "Name", |
---|
285 | valueText : "Value", |
---|
286 | dateFormat : "m/j/Y" |
---|
287 | }); |
---|
288 | } |
---|
289 | |
---|
290 | if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ |
---|
291 | Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { |
---|
292 | splitTip : "Drag to resize.", |
---|
293 | collapsibleSplitTip : "Drag to resize. Double click to hide." |
---|
294 | }); |
---|
295 | } |
---|