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