Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / locale / ext-lang-en.js
1 /**
2  * List compiled by mystix on the extjs.com forums.
3  * Thank you Mystix!
4  *
5  * English Translations
6  * updated to 2.2 by Condor (8 Aug 2008)
7  */
8 Ext.onReady(function() {
9     if (Ext.Updater) {
10         Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
11     }
12
13     if(Ext.data.Types){
14         Ext.data.Types.stripRe = /[\$,%]/g;
15     }
16
17     if(Ext.view.View){
18       Ext.view.View.prototype.emptyText = "";
19     }
20
21     if(Ext.grid.Panel){
22       Ext.grid.Panel.prototype.ddText = "{0} selected row{1}";
23     }
24
25     if(Ext.LoadMask){
26       Ext.LoadMask.prototype.msg = "Loading...";
27     }
28     
29     if(Ext.Date) {
30         Ext.Date.monthNames = [
31           "January",
32           "February",
33           "March",
34           "April",
35           "May",
36           "June",
37           "July",
38           "August",
39           "September",
40           "October",
41           "November",
42           "December"
43         ];
44
45         Ext.Date.getShortMonthName = function(month) {
46           return Ext.Date.monthNames[month].substring(0, 3);
47         };
48
49         Ext.Date.monthNumbers = {
50           Jan : 0,
51           Feb : 1,
52           Mar : 2,
53           Apr : 3,
54           May : 4,
55           Jun : 5,
56           Jul : 6,
57           Aug : 7,
58           Sep : 8,
59           Oct : 9,
60           Nov : 10,
61           Dec : 11
62         };
63
64         Ext.Date.getMonthNumber = function(name) {
65           return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
66         };
67
68         Ext.Date.dayNames = [
69           "Sunday",
70           "Monday",
71           "Tuesday",
72           "Wednesday",
73           "Thursday",
74           "Friday",
75           "Saturday"
76         ];
77
78         Ext.Date.getShortDayName = function(day) {
79           return Ext.Date.dayNames[day].substring(0, 3);
80         };
81
82         Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
83     }
84     
85     if(Ext.MessageBox){
86       Ext.MessageBox.buttonText = {
87         ok     : "OK",
88         cancel : "Cancel",
89         yes    : "Yes",
90         no     : "No"
91       };
92     }
93
94     if(Ext.util.Format){
95         Ext.apply(Ext.util.Format, {
96             thousandSeparator: ',',
97             decimalSeparator: '.',
98             currencySign: '$',
99             dateFormat: 'm/d/Y'
100         });
101     }
102
103     if(Ext.picker.Date){
104       Ext.apply(Ext.picker.Date.prototype, {
105         todayText         : "Today",
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          : 'Next Month (Control+Right)',
113         prevText          : 'Previous Month (Control+Left)',
114         monthYearText     : 'Choose a month (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;OK&#160;",
124           cancelText        : "Cancel"
125       });
126     }
127
128     if(Ext.toolbar.Paging){
129       Ext.apply(Ext.PagingToolbar.prototype, {
130         beforePageText : "Page",
131         afterPageText  : "of {0}",
132         firstText      : "First Page",
133         prevText       : "Previous Page",
134         nextText       : "Next Page",
135         lastText       : "Last Page",
136         refreshText    : "Refresh",
137         displayMsg     : "Displaying {0} - {1} of {2}",
138         emptyMsg       : 'No data to display'
139       });
140     }
141
142     if(Ext.form.Basic){
143         Ext.form.Basic.prototype.waitTitle = "Please Wait...";
144     }
145
146     if(Ext.form.field.Base){
147       Ext.form.field.Base.prototype.invalidText = "The value in this field is invalid";
148     }
149
150     if(Ext.form.field.Text){
151       Ext.apply(Ext.form.field.Text.prototype, {
152         minLengthText : "The minimum length for this field is {0}",
153         maxLengthText : "The maximum length for this field is {0}",
154         blankText     : "This field is required",
155         regexText     : "",
156         emptyText     : null
157       });
158     }
159
160     if(Ext.form.field.Number){
161       Ext.apply(Ext.form.field.Number.prototype, {
162         decimalSeparator : ".",
163         decimalPrecision : 2,
164         minText : "The minimum value for this field is {0}",
165         maxText : "The maximum value for this field is {0}",
166         nanText : "{0} is not a valid number"
167       });
168     }
169
170     if(Ext.form.field.Date){
171       Ext.apply(Ext.form.field.Date.prototype, {
172         disabledDaysText  : "Disabled",
173         disabledDatesText : "Disabled",
174         minText           : "The date in this field must be after {0}",
175         maxText           : "The date in this field must be before {0}",
176         invalidText       : "{0} is not a valid date - it must be in the format {1}",
177         format            : "m/d/y",
178         altFormats        : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
179       });
180     }
181
182     if(Ext.form.field.ComboBox){
183       Ext.apply(Ext.form.field.ComboBox.prototype, {
184         loadingText       : "Loading...",
185         valueNotFoundText : undefined
186       });
187     }
188
189     if(Ext.form.field.VTypes){
190       Ext.apply(Ext.form.field.VTypes, {
191         emailText    : 'This field should be an e-mail address in the format "user@example.com"',
192         urlText      : 'This field should be a URL in the format "http:/'+'/www.example.com"',
193         alphaText    : 'This field should only contain letters and _',
194         alphanumText : 'This field should only contain letters, numbers and _'
195       });
196     }
197
198     if(Ext.form.field.HtmlEditor){
199       Ext.apply(Ext.form.field.HtmlEditor.prototype, {
200         createLinkText : 'Please enter the URL for the link:',
201         buttonTips : {
202           bold : {
203             title: 'Bold (Ctrl+B)',
204             text: 'Make the selected text bold.',
205             cls: Ext.baseCSSPrefix + 'html-editor-tip'
206           },
207           italic : {
208             title: 'Italic (Ctrl+I)',
209             text: 'Make the selected text italic.',
210             cls: Ext.baseCSSPrefix + 'html-editor-tip'
211           },
212           underline : {
213             title: 'Underline (Ctrl+U)',
214             text: 'Underline the selected text.',
215             cls: Ext.baseCSSPrefix + 'html-editor-tip'
216           },
217           increasefontsize : {
218             title: 'Grow Text',
219             text: 'Increase the font size.',
220             cls: Ext.baseCSSPrefix + 'html-editor-tip'
221           },
222           decreasefontsize : {
223             title: 'Shrink Text',
224             text: 'Decrease the font size.',
225             cls: Ext.baseCSSPrefix + 'html-editor-tip'
226           },
227           backcolor : {
228             title: 'Text Highlight Color',
229             text: 'Change the background color of the selected text.',
230             cls: Ext.baseCSSPrefix + 'html-editor-tip'
231           },
232           forecolor : {
233             title: 'Font Color',
234             text: 'Change the color of the selected text.',
235             cls: Ext.baseCSSPrefix + 'html-editor-tip'
236           },
237           justifyleft : {
238             title: 'Align Text Left',
239             text: 'Align text to the left.',
240             cls: Ext.baseCSSPrefix + 'html-editor-tip'
241           },
242           justifycenter : {
243             title: 'Center Text',
244             text: 'Center text in the editor.',
245             cls: Ext.baseCSSPrefix + 'html-editor-tip'
246           },
247           justifyright : {
248             title: 'Align Text Right',
249             text: 'Align text to the right.',
250             cls: Ext.baseCSSPrefix + 'html-editor-tip'
251           },
252           insertunorderedlist : {
253             title: 'Bullet List',
254             text: 'Start a bulleted list.',
255             cls: Ext.baseCSSPrefix + 'html-editor-tip'
256           },
257           insertorderedlist : {
258             title: 'Numbered List',
259             text: 'Start a numbered list.',
260             cls: Ext.baseCSSPrefix + 'html-editor-tip'
261           },
262           createlink : {
263             title: 'Hyperlink',
264             text: 'Make the selected text a hyperlink.',
265             cls: Ext.baseCSSPrefix + 'html-editor-tip'
266           },
267           sourceedit : {
268             title: 'Source Edit',
269             text: 'Switch to source editing mode.',
270             cls: Ext.baseCSSPrefix + 'html-editor-tip'
271           }
272         }
273       });
274     }
275
276     if(Ext.grid.header.Container){
277       Ext.apply(Ext.grid.header.Container.prototype, {
278         sortAscText  : "Sort Ascending",
279         sortDescText : "Sort Descending",
280         columnsText  : "Columns"
281       });
282     }
283
284     if(Ext.grid.GroupingFeature){
285       Ext.apply(Ext.grid.GroupingFeature.prototype, {
286         emptyGroupText : '(None)',
287         groupByText    : 'Group By This Field',
288         showGroupsText : 'Show in Groups'
289       });
290     }
291
292     if(Ext.grid.PropertyColumnModel){
293       Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
294         nameText   : "Name",
295         valueText  : "Value",
296         dateFormat : "m/j/Y",
297         trueText: "true",
298         falseText: "false"
299       });
300     }
301
302     if(Ext.grid.BooleanColumn){
303        Ext.apply(Ext.grid.BooleanColumn.prototype, {
304           trueText  : "true",
305           falseText : "false",
306           undefinedText: '&#160;'
307        });
308     }
309
310     if(Ext.grid.NumberColumn){
311         Ext.apply(Ext.grid.NumberColumn.prototype, {
312             format : '0,000.00'
313         });
314     }
315
316     if(Ext.grid.DateColumn){
317         Ext.apply(Ext.grid.DateColumn.prototype, {
318             format : 'm/d/Y'
319         });
320     }
321
322     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
323       Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
324         splitTip            : "Drag to resize.",
325         collapsibleSplitTip : "Drag to resize. Double click to hide."
326       });
327     }
328
329     if(Ext.form.field.Time){
330       Ext.apply(Ext.form.field.Time.prototype, {
331         minText : "The time in this field must be equal to or after {0}",
332         maxText : "The time in this field must be equal to or before {0}",
333         invalidText : "{0} is not a valid time",
334         format : "g:i A",
335         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"
336       });
337     }
338
339     if(Ext.form.CheckboxGroup){
340       Ext.apply(Ext.form.CheckboxGroup.prototype, {
341         blankText : "You must select at least one item in this group"
342       });
343     }
344
345     if(Ext.form.RadioGroup){
346       Ext.apply(Ext.form.RadioGroup.prototype, {
347         blankText : "You must select one item in this group"
348       });
349     }
350 });