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