Upgrade to ExtJS 4.0.7 - Released 10/19/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         valueNotFoundText : undefined
199       });
200         Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
201             loadingText       : "Loading..."
202         });
203     }
204
205     if(Ext.form.field.VTypes){
206       Ext.apply(Ext.form.field.VTypes, {
207         emailText    : 'This field should be an e-mail address in the format "user@example.com"',
208         urlText      : 'This field should be a URL in the format "http:/'+'/www.example.com"',
209         alphaText    : 'This field should only contain letters and _',
210         alphanumText : 'This field should only contain letters, numbers and _'
211       });
212     }
213
214     if(Ext.form.field.HtmlEditor){
215       Ext.apply(Ext.form.field.HtmlEditor.prototype, {
216         createLinkText : 'Please enter the URL for the link:',
217         buttonTips : {
218           bold : {
219             title: 'Bold (Ctrl+B)',
220             text: 'Make the selected text bold.',
221             cls: Ext.baseCSSPrefix + 'html-editor-tip'
222           },
223           italic : {
224             title: 'Italic (Ctrl+I)',
225             text: 'Make the selected text italic.',
226             cls: Ext.baseCSSPrefix + 'html-editor-tip'
227           },
228           underline : {
229             title: 'Underline (Ctrl+U)',
230             text: 'Underline the selected text.',
231             cls: Ext.baseCSSPrefix + 'html-editor-tip'
232           },
233           increasefontsize : {
234             title: 'Grow Text',
235             text: 'Increase the font size.',
236             cls: Ext.baseCSSPrefix + 'html-editor-tip'
237           },
238           decreasefontsize : {
239             title: 'Shrink Text',
240             text: 'Decrease the font size.',
241             cls: Ext.baseCSSPrefix + 'html-editor-tip'
242           },
243           backcolor : {
244             title: 'Text Highlight Color',
245             text: 'Change the background color of the selected text.',
246             cls: Ext.baseCSSPrefix + 'html-editor-tip'
247           },
248           forecolor : {
249             title: 'Font Color',
250             text: 'Change the color of the selected text.',
251             cls: Ext.baseCSSPrefix + 'html-editor-tip'
252           },
253           justifyleft : {
254             title: 'Align Text Left',
255             text: 'Align text to the left.',
256             cls: Ext.baseCSSPrefix + 'html-editor-tip'
257           },
258           justifycenter : {
259             title: 'Center Text',
260             text: 'Center text in the editor.',
261             cls: Ext.baseCSSPrefix + 'html-editor-tip'
262           },
263           justifyright : {
264             title: 'Align Text Right',
265             text: 'Align text to the right.',
266             cls: Ext.baseCSSPrefix + 'html-editor-tip'
267           },
268           insertunorderedlist : {
269             title: 'Bullet List',
270             text: 'Start a bulleted list.',
271             cls: Ext.baseCSSPrefix + 'html-editor-tip'
272           },
273           insertorderedlist : {
274             title: 'Numbered List',
275             text: 'Start a numbered list.',
276             cls: Ext.baseCSSPrefix + 'html-editor-tip'
277           },
278           createlink : {
279             title: 'Hyperlink',
280             text: 'Make the selected text a hyperlink.',
281             cls: Ext.baseCSSPrefix + 'html-editor-tip'
282           },
283           sourceedit : {
284             title: 'Source Edit',
285             text: 'Switch to source editing mode.',
286             cls: Ext.baseCSSPrefix + 'html-editor-tip'
287           }
288         }
289       });
290     }
291
292     if(Ext.grid.header.Container){
293       Ext.apply(Ext.grid.header.Container.prototype, {
294         sortAscText  : "Sort Ascending",
295         sortDescText : "Sort Descending",
296         columnsText  : "Columns"
297       });
298     }
299
300     if(Ext.grid.GroupingFeature){
301       Ext.apply(Ext.grid.GroupingFeature.prototype, {
302         emptyGroupText : '(None)',
303         groupByText    : 'Group By This Field',
304         showGroupsText : 'Show in Groups'
305       });
306     }
307
308     if(Ext.grid.PropertyColumnModel){
309       Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
310         nameText   : "Name",
311         valueText  : "Value",
312         dateFormat : "m/j/Y",
313         trueText: "true",
314         falseText: "false"
315       });
316     }
317
318     if(Ext.grid.BooleanColumn){
319        Ext.apply(Ext.grid.BooleanColumn.prototype, {
320           trueText  : "true",
321           falseText : "false",
322           undefinedText: '&#160;'
323        });
324     }
325
326     if(Ext.grid.NumberColumn){
327         Ext.apply(Ext.grid.NumberColumn.prototype, {
328             format : '0,000.00'
329         });
330     }
331
332     if(Ext.grid.DateColumn){
333         Ext.apply(Ext.grid.DateColumn.prototype, {
334             format : 'm/d/Y'
335         });
336     }
337
338     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
339       Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
340         splitTip            : "Drag to resize.",
341         collapsibleSplitTip : "Drag to resize. Double click to hide."
342       });
343     }
344
345     if(Ext.form.field.Time){
346       Ext.apply(Ext.form.field.Time.prototype, {
347         minText : "The time in this field must be equal to or after {0}",
348         maxText : "The time in this field must be equal to or before {0}",
349         invalidText : "{0} is not a valid time",
350         format : "g:i A",
351         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"
352       });
353     }
354
355     if(Ext.form.CheckboxGroup){
356       Ext.apply(Ext.form.CheckboxGroup.prototype, {
357         blankText : "You must select at least one item in this group"
358       });
359     }
360
361     if(Ext.form.RadioGroup){
362       Ext.apply(Ext.form.RadioGroup.prototype, {
363         blankText : "You must select one item in this group"
364       });
365     }
366 });