source: trunk/web/addons/job_monarch/lib/extjs/source/locale/ext-lang-en_GB.js @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 7.9 KB
Line 
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
9Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
10
11if(Ext.DataView){
12  Ext.DataView.prototype.emptyText = "";
13}
14
15if(Ext.grid.GridPanel){
16  Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
17}
18
19if(Ext.LoadMask){
20  Ext.LoadMask.prototype.msg = "Loading...";
21}
22
23Date.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
38Date.getShortMonthName = function(month) {
39  return Date.monthNames[month].substring(0, 3);
40};
41
42Date.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
57Date.getMonthNumber = function(name) {
58  return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
59};
60
61Date.dayNames = [
62  "Sunday",
63  "Monday",
64  "Tuesday",
65  "Wednesday",
66  "Thursday",
67  "Friday",
68  "Saturday"
69];
70
71Date.getShortDayName = function(day) {
72  return Date.dayNames[day].substring(0, 3);
73};
74
75Date.parseCodes.S.s = "(?:st|nd|rd|th)";
76
77if(Ext.MessageBox){
78  Ext.MessageBox.buttonText = {
79    ok     : "OK",
80    cancel : "Cancel",
81    yes    : "Yes",
82    no     : "No"
83  };
84}
85
86if(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
94if(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
114if(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
128if(Ext.form.Field){
129  Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
130}
131
132if(Ext.form.TextField){
133  Ext.apply(Ext.form.TextField.prototype, {
134    minLengthText : "The minimum length for this field is {0}",
135    maxLengthText : "The maximum length for this field is {0}",
136    blankText     : "This field is required",
137    regexText     : "",
138    emptyText     : null
139  });
140}
141
142if(Ext.form.NumberField){
143  Ext.apply(Ext.form.NumberField.prototype, {
144    decimalSeparator : ".",
145    decimalPrecision : 2,
146    minText : "The minimum value for this field is {0}",
147    maxText : "The maximum value for this field is {0}",
148    nanText : "{0} is not a valid number"
149  });
150}
151
152if(Ext.form.DateField){
153  Ext.apply(Ext.form.DateField.prototype, {
154    disabledDaysText  : "Disabled",
155    disabledDatesText : "Disabled",
156    minText           : "The date in this field must be after {0}",
157    maxText           : "The date in this field must be before {0}",
158    invalidText       : "{0} is not a valid date - it must be in the format {1}",
159    format            : "d/m/y",
160    altFormats        : "d/m/Y|d/m/y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
161  });
162}
163
164if(Ext.form.ComboBox){
165  Ext.apply(Ext.form.ComboBox.prototype, {
166    loadingText       : "Loading...",
167    valueNotFoundText : undefined
168  });
169}
170
171if(Ext.form.VTypes){
172  Ext.apply(Ext.form.VTypes, {
173    emailText    : 'This field should be an e-mail address in the format "user@domain.com"',
174    urlText      : 'This field should be a URL in the format "http:/'+'/www.domain.com"',
175    alphaText    : 'This field should only contain letters and _',
176    alphanumText : 'This field should only contain letters, numbers and _'
177  });
178}
179
180if(Ext.form.HtmlEditor){
181  Ext.apply(Ext.form.HtmlEditor.prototype, {
182    createLinkText : 'Please enter the URL for the link:',
183    buttonTips : {
184      bold : {
185        title: 'Bold (Ctrl+B)',
186        text: 'Make the selected text bold.',
187        cls: 'x-html-editor-tip'
188      },
189      italic : {
190        title: 'Italic (Ctrl+I)',
191        text: 'Make the selected text italic.',
192        cls: 'x-html-editor-tip'
193      },
194      underline : {
195        title: 'Underline (Ctrl+U)',
196        text: 'Underline the selected text.',
197        cls: 'x-html-editor-tip'
198      },
199      increasefontsize : {
200        title: 'Grow Text',
201        text: 'Increase the font size.',
202        cls: 'x-html-editor-tip'
203      },
204      decreasefontsize : {
205        title: 'Shrink Text',
206        text: 'Decrease the font size.',
207        cls: 'x-html-editor-tip'
208      },
209      backcolor : {
210        title: 'Text Highlight Color',
211        text: 'Change the background color of the selected text.',
212        cls: 'x-html-editor-tip'
213      },
214      forecolor : {
215        title: 'Font Color',
216        text: 'Change the color of the selected text.',
217        cls: 'x-html-editor-tip'
218      },
219      justifyleft : {
220        title: 'Align Text Left',
221        text: 'Align text to the left.',
222        cls: 'x-html-editor-tip'
223      },
224      justifycenter : {
225        title: 'Center Text',
226        text: 'Center text in the editor.',
227        cls: 'x-html-editor-tip'
228      },
229      justifyright : {
230        title: 'Align Text Right',
231        text: 'Align text to the right.',
232        cls: 'x-html-editor-tip'
233      },
234      insertunorderedlist : {
235        title: 'Bullet List',
236        text: 'Start a bulleted list.',
237        cls: 'x-html-editor-tip'
238      },
239      insertorderedlist : {
240        title: 'Numbered List',
241        text: 'Start a numbered list.',
242        cls: 'x-html-editor-tip'
243      },
244      createlink : {
245        title: 'Hyperlink',
246        text: 'Make the selected text a hyperlink.',
247        cls: 'x-html-editor-tip'
248      },
249      sourceedit : {
250        title: 'Source Edit',
251        text: 'Switch to source editing mode.',
252        cls: 'x-html-editor-tip'
253      }
254    }
255  });
256}
257
258if(Ext.grid.GridView){
259  Ext.apply(Ext.grid.GridView.prototype, {
260    sortAscText  : "Sort Ascending",
261    sortDescText : "Sort Descending",
262    columnsText  : "Columns"
263  });
264}
265
266if(Ext.grid.GroupingView){
267  Ext.apply(Ext.grid.GroupingView.prototype, {
268    emptyGroupText : '(None)',
269    groupByText    : 'Group By This Field',
270    showGroupsText : 'Show in Groups'
271  });
272}
273
274if(Ext.grid.PropertyColumnModel){
275  Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
276    nameText   : "Name",
277    valueText  : "Value",
278    dateFormat : "j/m/Y"
279  });
280}
281
282if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
283  Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
284    splitTip            : "Drag to resize.",
285    collapsibleSplitTip : "Drag to resize. Double click to hide."
286  });
287}
288
289if(Ext.form.TimeField){
290  Ext.apply(Ext.form.TimeField.prototype, {
291    minText : "The time in this field must be equal to or after {0}",
292    maxText : "The time in this field must be equal to or before {0}",
293    invalidText : "{0} is not a valid time",
294    format : "g:i A",
295    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"
296  });
297}
298
299if(Ext.form.CheckboxGroup){
300  Ext.apply(Ext.form.CheckboxGroup.prototype, {
301    blankText : "You must select at least one item in this group"
302  });
303}
304
305if(Ext.form.RadioGroup){
306  Ext.apply(Ext.form.RadioGroup.prototype, {
307    blankText : "You must select one item in this group"
308  });
309}
Note: See TracBrowser for help on using the repository browser.