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