Upgrade to ExtJS 4.0.2 - Released 06/09/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     loadingText       : "¡ÓÅѧâËÅŽ...",
189     valueNotFoundText : undefined
190   });
191 }
192
193 if(Ext.form.field.VTypes){
194   Ext.apply(Ext.form.field.VTypes, {
195     emailText    : 'This field should be an e-mail address in the format "user@example.com"',
196     urlText      : 'This field should be a URL in the format "http:/'+'/www.example.com"',
197     alphaText    : 'This field should only contain letters and _',
198     alphanumText : 'This field should only contain letters, numbers and _'
199   });
200 }
201
202 if(Ext.form.field.HtmlEditor){
203   Ext.apply(Ext.form.field.HtmlEditor.prototype, {
204     createLinkText : 'Please enter the URL for the link:',
205     buttonTips : {
206       bold : {
207         title: 'Bold (Ctrl+B)',
208         text: 'Make the selected text bold.',
209         cls: Ext.baseCSSPrefix + 'html-editor-tip'
210       },
211       italic : {
212         title: 'Italic (Ctrl+I)',
213         text: 'Make the selected text italic.',
214         cls: Ext.baseCSSPrefix + 'html-editor-tip'
215       },
216       underline : {
217         title: 'Underline (Ctrl+U)',
218         text: 'Underline the selected text.',
219         cls: Ext.baseCSSPrefix + 'html-editor-tip'
220       },
221       increasefontsize : {
222         title: 'Grow Text',
223         text: 'Increase the font size.',
224         cls: Ext.baseCSSPrefix + 'html-editor-tip'
225       },
226       decreasefontsize : {
227         title: 'Shrink Text',
228         text: 'Decrease the font size.',
229         cls: Ext.baseCSSPrefix + 'html-editor-tip'
230       },
231       backcolor : {
232         title: 'Text Highlight Color',
233         text: 'Change the background color of the selected text.',
234         cls: Ext.baseCSSPrefix + 'html-editor-tip'
235       },
236       forecolor : {
237         title: 'Font Color',
238         text: 'Change the color of the selected text.',
239         cls: Ext.baseCSSPrefix + 'html-editor-tip'
240       },
241       justifyleft : {
242         title: 'Align Text Left',
243         text: 'Align text to the left.',
244         cls: Ext.baseCSSPrefix + 'html-editor-tip'
245       },
246       justifycenter : {
247         title: 'Center Text',
248         text: 'Center text in the editor.',
249         cls: Ext.baseCSSPrefix + 'html-editor-tip'
250       },
251       justifyright : {
252         title: 'Align Text Right',
253         text: 'Align text to the right.',
254         cls: Ext.baseCSSPrefix + 'html-editor-tip'
255       },
256       insertunorderedlist : {
257         title: 'Bullet List',
258         text: 'Start a bulleted list.',
259         cls: Ext.baseCSSPrefix + 'html-editor-tip'
260       },
261       insertorderedlist : {
262         title: 'Numbered List',
263         text: 'Start a numbered list.',
264         cls: Ext.baseCSSPrefix + 'html-editor-tip'
265       },
266       createlink : {
267         title: 'Hyperlink',
268         text: 'Make the selected text a hyperlink.',
269         cls: Ext.baseCSSPrefix + 'html-editor-tip'
270       },
271       sourceedit : {
272         title: 'Source Edit',
273         text: 'Switch to source editing mode.',
274         cls: Ext.baseCSSPrefix + 'html-editor-tip'
275       }
276     }
277   });
278 }
279
280 if(Ext.grid.header.Container){
281   Ext.apply(Ext.grid.header.Container.prototype, {
282     sortAscText  : "Sort Ascending",
283     sortDescText : "Sort Descending",
284     lockText     : "Lock Column",
285     unlockText   : "Unlock Column",
286     columnsText  : "Columns"
287   });
288 }
289
290 if(Ext.grid.GroupingFeature){
291   Ext.apply(Ext.grid.GroupingFeature.prototype, {
292     emptyGroupText : '(None)',
293     groupByText    : 'Group By This Field',
294     showGroupsText : 'Show in Groups'
295   });
296 }
297
298 if(Ext.grid.PropertyColumnModel){
299   Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
300     nameText   : "Name",
301     valueText  : "Value",
302     dateFormat : "m/j/Y"
303   });
304 }
305
306 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
307   Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
308     splitTip            : "Drag to resize.",
309     collapsibleSplitTip : "Drag to resize. Double click to hide."
310   });
311 }
312
313 });