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