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