Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / docs / source / ext-lang-en.html
1 <html>
2 <head>
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
4   <title>The source code</title>
5     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
6     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 </head>
8 <body  onload="prettyPrint();">
9     <pre class="prettyprint lang-js">/*!
10  * Ext JS Library 3.2.0
11  * Copyright(c) 2006-2010 Ext JS, Inc.
12  * licensing@extjs.com
13  * http://www.extjs.com/license
14  */
15 <div id="prop-Ext.state.Provider-indicatorText"></div>/**
16  * List compiled by mystix on the extjs.com forums.
17  * Thank you Mystix!
18  *
19  * English Translations
20  * updated to 2.2 by Condor (8 Aug 2008)
21  */
22
23 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
24
25 if(Ext.data.Types){
26     Ext.data.Types.stripRe = /[\$,%]/g;
27 }
28
29 if(Ext.DataView){
30   Ext.DataView.prototype.emptyText = "";
31 }
32
33 if(Ext.grid.GridPanel){
34   Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
35 }
36
37 if(Ext.LoadMask){
38   Ext.LoadMask.prototype.msg = "Loading...";
39 }
40
41 Date.monthNames = [
42   "January",
43   "February",
44   "March",
45   "April",
46   "May",
47   "June",
48   "July",
49   "August",
50   "September",
51   "October",
52   "November",
53   "December"
54 ];
55
56 Date.getShortMonthName = function(month) {
57   return Date.monthNames[month].substring(0, 3);
58 };
59
60 Date.monthNumbers = {
61   Jan : 0,
62   Feb : 1,
63   Mar : 2,
64   Apr : 3,
65   May : 4,
66   Jun : 5,
67   Jul : 6,
68   Aug : 7,
69   Sep : 8,
70   Oct : 9,
71   Nov : 10,
72   Dec : 11
73 };
74
75 Date.getMonthNumber = function(name) {
76   return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
77 };
78
79 Date.dayNames = [
80   "Sunday",
81   "Monday",
82   "Tuesday",
83   "Wednesday",
84   "Thursday",
85   "Friday",
86   "Saturday"
87 ];
88
89 Date.getShortDayName = function(day) {
90   return Date.dayNames[day].substring(0, 3);
91 };
92
93 Date.parseCodes.S.s = "(?:st|nd|rd|th)";
94
95 if(Ext.MessageBox){
96   Ext.MessageBox.buttonText = {
97     ok     : "OK",
98     cancel : "Cancel",
99     yes    : "Yes",
100     no     : "No"
101   };
102 }
103
104 if(Ext.util.Format){
105   Ext.util.Format.date = function(v, format){
106     if(!v) return "";
107     if(!(v instanceof Date)) v = new Date(Date.parse(v));
108     return v.dateFormat(format || "m/d/Y");
109   };
110 }
111
112 if(Ext.DatePicker){
113   Ext.apply(Ext.DatePicker.prototype, {
114     todayText         : "Today",
115     minText           : "This date is before the minimum date",
116     maxText           : "This date is after the maximum date",
117     disabledDaysText  : "",
118     disabledDatesText : "",
119     monthNames        : Date.monthNames,
120     dayNames          : Date.dayNames,
121     nextText          : 'Next Month (Control+Right)',
122     prevText          : 'Previous Month (Control+Left)',
123     monthYearText     : 'Choose a month (Control+Up/Down to move years)',
124     todayTip          : "{0} (Spacebar)",
125     format            : "m/d/y",
126     okText            : "&#160;OK&#160;",
127     cancelText        : "Cancel",
128     startDay          : 0
129   });
130 }
131
132 if(Ext.PagingToolbar){
133   Ext.apply(Ext.PagingToolbar.prototype, {
134     beforePageText : "Page",
135     afterPageText  : "of {0}",
136     firstText      : "First Page",
137     prevText       : "Previous Page",
138     nextText       : "Next Page",
139     lastText       : "Last Page",
140     refreshText    : "Refresh",
141     displayMsg     : "Displaying {0} - {1} of {2}",
142     emptyMsg       : 'No data to display'
143   });
144 }
145
146 if(Ext.form.BasicForm){
147     Ext.form.BasicForm.prototype.waitTitle = "Please Wait..."
148 }
149
150 if(Ext.form.Field){
151   Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
152 }
153
154 if(Ext.form.TextField){
155   Ext.apply(Ext.form.TextField.prototype, {
156     minLengthText : "The minimum length for this field is {0}",
157     maxLengthText : "The maximum length for this field is {0}",
158     blankText     : "This field is required",
159     regexText     : "",
160     emptyText     : null
161   });
162 }
163
164 if(Ext.form.NumberField){
165   Ext.apply(Ext.form.NumberField.prototype, {
166     decimalSeparator : ".",
167     decimalPrecision : 2,
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.DateField){
175   Ext.apply(Ext.form.DateField.prototype, {
176     disabledDaysText  : "Disabled",
177     disabledDatesText : "Disabled",
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.ComboBox){
187   Ext.apply(Ext.form.ComboBox.prototype, {
188     loadingText       : "Loading...",
189     valueNotFoundText : undefined
190   });
191 }
192
193 if(Ext.form.VTypes){
194   Ext.apply(Ext.form.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.HtmlEditor){
203   Ext.apply(Ext.form.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: 'x-html-editor-tip'
210       },
211       italic : {
212         title: 'Italic (Ctrl+I)',
213         text: 'Make the selected text italic.',
214         cls: 'x-html-editor-tip'
215       },
216       underline : {
217         title: 'Underline (Ctrl+U)',
218         text: 'Underline the selected text.',
219         cls: 'x-html-editor-tip'
220       },
221       increasefontsize : {
222         title: 'Grow Text',
223         text: 'Increase the font size.',
224         cls: 'x-html-editor-tip'
225       },
226       decreasefontsize : {
227         title: 'Shrink Text',
228         text: 'Decrease the font size.',
229         cls: 'x-html-editor-tip'
230       },
231       backcolor : {
232         title: 'Text Highlight Color',
233         text: 'Change the background color of the selected text.',
234         cls: 'x-html-editor-tip'
235       },
236       forecolor : {
237         title: 'Font Color',
238         text: 'Change the color of the selected text.',
239         cls: 'x-html-editor-tip'
240       },
241       justifyleft : {
242         title: 'Align Text Left',
243         text: 'Align text to the left.',
244         cls: 'x-html-editor-tip'
245       },
246       justifycenter : {
247         title: 'Center Text',
248         text: 'Center text in the editor.',
249         cls: 'x-html-editor-tip'
250       },
251       justifyright : {
252         title: 'Align Text Right',
253         text: 'Align text to the right.',
254         cls: 'x-html-editor-tip'
255       },
256       insertunorderedlist : {
257         title: 'Bullet List',
258         text: 'Start a bulleted list.',
259         cls: 'x-html-editor-tip'
260       },
261       insertorderedlist : {
262         title: 'Numbered List',
263         text: 'Start a numbered list.',
264         cls: 'x-html-editor-tip'
265       },
266       createlink : {
267         title: 'Hyperlink',
268         text: 'Make the selected text a hyperlink.',
269         cls: 'x-html-editor-tip'
270       },
271       sourceedit : {
272         title: 'Source Edit',
273         text: 'Switch to source editing mode.',
274         cls: 'x-html-editor-tip'
275       }
276     }
277   });
278 }
279
280 if(Ext.grid.GridView){
281   Ext.apply(Ext.grid.GridView.prototype, {
282     sortAscText  : "Sort Ascending",
283     sortDescText : "Sort Descending",
284     columnsText  : "Columns"
285   });
286 }
287
288 if(Ext.grid.GroupingView){
289   Ext.apply(Ext.grid.GroupingView.prototype, {
290     emptyGroupText : '(None)',
291     groupByText    : 'Group By This Field',
292     showGroupsText : 'Show in Groups'
293   });
294 }
295
296 if(Ext.grid.PropertyColumnModel){
297   Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
298     nameText   : "Name",
299     valueText  : "Value",
300     dateFormat : "m/j/Y",
301     trueText: "true",
302     falseText: "false"
303   });
304 }
305
306 if(Ext.grid.BooleanColumn){
307    Ext.apply(Ext.grid.BooleanColumn.prototype, {
308       trueText  : "true",
309       falseText : "false",
310       undefinedText: '&#160;'
311    });
312 }
313
314 if(Ext.grid.NumberColumn){
315     Ext.apply(Ext.grid.NumberColumn.prototype, {
316         format : '0,000.00'
317     });
318 }
319
320 if(Ext.grid.DateColumn){
321     Ext.apply(Ext.grid.DateColumn.prototype, {
322         format : 'm/d/Y'
323     });
324 }
325
326 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
327   Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
328     splitTip            : "Drag to resize.",
329     collapsibleSplitTip : "Drag to resize. Double click to hide."
330   });
331 }
332
333 if(Ext.form.TimeField){
334   Ext.apply(Ext.form.TimeField.prototype, {
335     minText : "The time in this field must be equal to or after {0}",
336     maxText : "The time in this field must be equal to or before {0}",
337     invalidText : "{0} is not a valid time",
338     format : "g:i A",
339     altFormats : "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
340   });
341 }
342
343 if(Ext.form.CheckboxGroup){
344   Ext.apply(Ext.form.CheckboxGroup.prototype, {
345     blankText : "You must select at least one item in this group"
346   });
347 }
348
349 if(Ext.form.RadioGroup){
350   Ext.apply(Ext.form.RadioGroup.prototype, {
351     blankText : "You must select one item in this group"
352   });
353 }
354 </pre>    
355 </body>
356 </html>