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