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