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