Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / ext-lang-th.html
1 <html>\r
2 <head>\r
3   <title>The source code</title>\r
4     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
5     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
6 </head>\r
7 <body  onload="prettyPrint();">\r
8     <pre class="prettyprint lang-js"><div id="prop-Ext.data.XmlStore-indicatorText"></div>/**
9  * List compiled by KillerNay on the extjs.com forums.
10  * Thank you KillerNay!
11  *
12  * Thailand Translations
13  */
14
15 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">¡ÓÅѧâËÅŽ...</div>';
16
17 if(Ext.View){
18   Ext.View.prototype.emptyText = "";
19 }
20
21 if(Ext.grid.GridPanel){
22   Ext.grid.GridPanel.prototype.ddText = "{0} àÅ×Í¡áÅéÇ·Ñé§ËÁŽá¶Ç";
23 }
24
25 if(Ext.TabPanelItem){
26   Ext.TabPanelItem.prototype.closeText = "»ÔŽá·çº¹Õé";
27 }
28
29 if(Ext.form.Field){
30   Ext.form.Field.prototype.invalidText = "€èҢͧªèͧ¹ÕéäÁè¶Ù¡µéͧ";
31 }
32
33 if(Ext.LoadMask){
34   Ext.LoadMask.prototype.msg = "¡ÓÅѧâËÅŽ...";
35 }
36
37 Date.monthNames = [
38   "Á¡ÃÒ€Á",
39   "¡ØÁŸÒӟѹžì",
40   "ÁÕ¹Ò€Á",
41   "àÁÉÒ¹",
42   "ŸÄÉÀÒ€Á",
43   "ÁԶعÒ¹",
44   "¡Ä¡¯Ò€Á",
45   "ÊÔ§ËÒ€Á",
46   "¡Ñ¹ÂÒ¹",
47   "µØÅÒ€Á",
48   "ŸÄÈšÔ¡Ò¹",
49   "žÑ¹ÇÒ€Á"
50 ];
51
52 Date.getShortMonthName = function(month) {
53   return Date.monthNames[month].substring(0, 3);
54 };
55
56 Date.monthNumbers = {
57   "Á€" : 0,
58   "¡Ÿ" : 1,
59   "ÁÕ€" : 2,
60   "àÁÂ" : 3,
61   "Ÿ€" : 4,
62   "ÁÔÂ" : 5,
63   "¡€" : 6,
64   "Ê€" : 7,
65   "¡Â" : 8,
66   "µ€" : 9,
67   "ŸÂ" : 10,
68   "ž€" : 11
69 };
70
71 Date.getMonthNumber = function(name) {
72   return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
73 };
74
75 Date.dayNames = [
76   "ÍÒ·ÔµÂì",
77   "šÑ¹·Ãì",
78   "Íѧ€ÒÃ",
79   "ŸØמ",
80   "ŸÄËÑʺŽÕ",
81   "ÈØ¡Ãì",
82   "àÊÒÃì"
83 ];
84
85 Date.getShortDayName = function(day) {
86   return Date.dayNames[day].substring(0, 3);
87 };
88
89 if(Ext.MessageBox){
90   Ext.MessageBox.buttonText = {
91     ok     : "µ¡Å§",
92     cancel : "¡àÅÔ¡",
93     yes    : "ãªè",
94     no     : "äÁèãªè"
95   };
96 }
97
98 if(Ext.util.Format){
99   Ext.util.Format.date = function(v, format){
100     if(!v) return "";
101     if(!(v instanceof Date)) v = new Date(Date.parse(v));
102     return v.dateFormat(format || "m/d/Y");
103   };
104 }
105
106 if(Ext.DatePicker){
107   Ext.apply(Ext.DatePicker.prototype, {
108     todayText         : "Çѹ¹Õé",
109     minText           : "This date is before the minimum date",
110     maxText           : "This date is after the maximum date",
111     disabledDaysText  : "",
112     disabledDatesText : "",
113     monthNames        : Date.monthNames,
114     dayNames          : Date.dayNames,
115     nextText          : 'àŽ×͹¶ÑŽä» (Control+Right)',
116     prevText          : 'àŽ×͹¡è͹˹éÒ (Control+Left)',
117     monthYearText     : 'àÅ×Í¡àŽ×͹ (Control+Up/Down to move years)',
118     todayTip          : "{0} (Spacebar)",
119     format            : "m/d/y",
120     okText            : "&#160;µ¡Å§&#160;",
121     cancelText        : "¡àÅÔ¡",
122     startDay          : 0
123   });
124 }
125
126 if(Ext.PagingToolbar){
127   Ext.apply(Ext.PagingToolbar.prototype, {
128     beforePageText : "˹éÒ",
129     afterPageText  : "of {0}",
130     firstText      : "˹éÒáá",
131     prevText       : "¡è͹˹éÒ",
132     nextText       : "¶ÑŽä»",
133     lastText       : "˹éÒÊØŽ·éÒÂ",
134     refreshText    : "ÃÕà¿Ãª",
135     displayMsg     : "¡ÓÅѧáÊŽ§ {0} - {1} šÒ¡ {2}",
136     emptyMsg       : 'äÁèÁÕ¢éÍÁÙÅáÊŽ§'
137   });
138 }
139
140 if(Ext.form.TextField){
141   Ext.apply(Ext.form.TextField.prototype, {
142     minLengthText : "The minimum length for this field is {0}",
143     maxLengthText : "The maximum length for this field is {0}",
144     blankText     : "This field is required",
145     regexText     : "",
146     emptyText     : null
147   });
148 }
149
150 if(Ext.form.NumberField){
151   Ext.apply(Ext.form.NumberField.prototype, {
152     minText : "The minimum value for this field is {0}",
153     maxText : "The maximum value for this field is {0}",
154     nanText : "{0} is not a valid number"
155   });
156 }
157
158 if(Ext.form.DateField){
159   Ext.apply(Ext.form.DateField.prototype, {
160     disabledDaysText  : "»ÔŽ",
161     disabledDatesText : "»ÔŽ",
162     minText           : "The date in this field must be after {0}",
163     maxText           : "The date in this field must be before {0}",
164     invalidText       : "{0} is not a valid date - it must be in the format {1}",
165     format            : "m/d/y",
166     altFormats        : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
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 }
296 </pre>    \r
297 </body>\r
298 </html>