source: trunk/web/addons/job_monarch/lib/extjs-30/src/locale/ext-lang-en.js @ 625

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

lib/extjs-30:

  • new ExtJS 3.0
File size: 8.4 KB
Line 
1/*!
2 * Ext JS Library 3.0.0
3 * Copyright(c) 2006-2009 Ext JS, LLC
4 * licensing@extjs.com
5 * http://www.extjs.com/license
6 */
7/**
8 * List compiled by mystix on the extjs.com forums.
9 * Thank you Mystix!
10 *
11 * English Translations
12 * updated to 2.2 by Condor (8 Aug 2008)
13 */
14
15Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
16
17if(Ext.DataView){
18  Ext.DataView.prototype.emptyText = "";
19}
20
21if(Ext.grid.GridPanel){
22  Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
23}
24
25if(Ext.LoadMask){
26  Ext.LoadMask.prototype.msg = "Loading...";
27}
28
29Date.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
44Date.getShortMonthName = function(month) {
45  return Date.monthNames[month].substring(0, 3);
46};
47
48Date.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
63Date.getMonthNumber = function(name) {
64  return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
65};
66
67Date.dayNames = [
68  "Sunday",
69  "Monday",
70  "Tuesday",
71  "Wednesday",
72  "Thursday",
73  "Friday",
74  "Saturday"
75];
76
77Date.getShortDayName = function(day) {
78  return Date.dayNames[day].substring(0, 3);
79};
80
81Date.parseCodes.S.s = "(?:st|nd|rd|th)";
82
83if(Ext.MessageBox){
84  Ext.MessageBox.buttonText = {
85    ok     : "OK",
86    cancel : "Cancel",
87    yes    : "Yes",
88    no     : "No"
89  };
90}
91
92if(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 || "m/d/Y");
97  };
98}
99
100if(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            : "m/d/y",
114    okText            : "&#160;OK&#160;",
115    cancelText        : "Cancel",
116    startDay          : 0
117  });
118}
119
120if(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
134if(Ext.form.Field){
135  Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
136}
137
138if(Ext.form.TextField){
139  Ext.apply(Ext.form.TextField.prototype, {
140    minLengthText : "The minimum length for this field is {0}",
141    maxLengthText : "The maximum length for this field is {0}",
142    blankText     : "This field is required",
143    regexText     : "",
144    emptyText     : null
145  });
146}
147
148if(Ext.form.NumberField){
149  Ext.apply(Ext.form.NumberField.prototype, {
150    decimalSeparator : ".",
151    decimalPrecision : 2,
152    minText : "The minimum value for this field is {0}",
153    maxText : "The maximum value for this field is {0}",
154    nanText : "{0} is not a valid number"
155  });
156}
157
158if(Ext.form.DateField){
159  Ext.apply(Ext.form.DateField.prototype, {
160    disabledDaysText  : "Disabled",
161    disabledDatesText : "Disabled",
162    minText           : "The date in this field must be after {0}",
163    maxText           : "The date in this field must be before {0}",
164    invalidText       : "{0} is not a valid date - it must be in the format {1}",
165    format            : "m/d/y",
166    altFormats        : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
167  });
168}
169
170if(Ext.form.ComboBox){
171  Ext.apply(Ext.form.ComboBox.prototype, {
172    loadingText       : "Loading...",
173    valueNotFoundText : undefined
174  });
175}
176
177if(Ext.form.VTypes){
178  Ext.apply(Ext.form.VTypes, {
179    emailText    : 'This field should be an e-mail address in the format "user@example.com"',
180    urlText      : 'This field should be a URL in the format "http:/'+'/www.example.com"',
181    alphaText    : 'This field should only contain letters and _',
182    alphanumText : 'This field should only contain letters, numbers and _'
183  });
184}
185
186if(Ext.form.HtmlEditor){
187  Ext.apply(Ext.form.HtmlEditor.prototype, {
188    createLinkText : 'Please enter the URL for the link:',
189    buttonTips : {
190      bold : {
191        title: 'Bold (Ctrl+B)',
192        text: 'Make the selected text bold.',
193        cls: 'x-html-editor-tip'
194      },
195      italic : {
196        title: 'Italic (Ctrl+I)',
197        text: 'Make the selected text italic.',
198        cls: 'x-html-editor-tip'
199      },
200      underline : {
201        title: 'Underline (Ctrl+U)',
202        text: 'Underline the selected text.',
203        cls: 'x-html-editor-tip'
204      },
205      increasefontsize : {
206        title: 'Grow Text',
207        text: 'Increase the font size.',
208        cls: 'x-html-editor-tip'
209      },
210      decreasefontsize : {
211        title: 'Shrink Text',
212        text: 'Decrease the font size.',
213        cls: 'x-html-editor-tip'
214      },
215      backcolor : {
216        title: 'Text Highlight Color',
217        text: 'Change the background color of the selected text.',
218        cls: 'x-html-editor-tip'
219      },
220      forecolor : {
221        title: 'Font Color',
222        text: 'Change the color of the selected text.',
223        cls: 'x-html-editor-tip'
224      },
225      justifyleft : {
226        title: 'Align Text Left',
227        text: 'Align text to the left.',
228        cls: 'x-html-editor-tip'
229      },
230      justifycenter : {
231        title: 'Center Text',
232        text: 'Center text in the editor.',
233        cls: 'x-html-editor-tip'
234      },
235      justifyright : {
236        title: 'Align Text Right',
237        text: 'Align text to the right.',
238        cls: 'x-html-editor-tip'
239      },
240      insertunorderedlist : {
241        title: 'Bullet List',
242        text: 'Start a bulleted list.',
243        cls: 'x-html-editor-tip'
244      },
245      insertorderedlist : {
246        title: 'Numbered List',
247        text: 'Start a numbered list.',
248        cls: 'x-html-editor-tip'
249      },
250      createlink : {
251        title: 'Hyperlink',
252        text: 'Make the selected text a hyperlink.',
253        cls: 'x-html-editor-tip'
254      },
255      sourceedit : {
256        title: 'Source Edit',
257        text: 'Switch to source editing mode.',
258        cls: 'x-html-editor-tip'
259      }
260    }
261  });
262}
263
264if(Ext.grid.GridView){
265  Ext.apply(Ext.grid.GridView.prototype, {
266    sortAscText  : "Sort Ascending",
267    sortDescText : "Sort Descending",
268    columnsText  : "Columns"
269  });
270}
271
272if(Ext.grid.GroupingView){
273  Ext.apply(Ext.grid.GroupingView.prototype, {
274    emptyGroupText : '(None)',
275    groupByText    : 'Group By This Field',
276    showGroupsText : 'Show in Groups'
277  });
278}
279
280if(Ext.grid.PropertyColumnModel){
281  Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
282    nameText   : "Name",
283    valueText  : "Value",
284    dateFormat : "m/j/Y"
285  });
286}
287
288if(Ext.grid.BooleanColumn){
289   Ext.apply(Ext.grid.BooleanColumn.prototype, {
290      trueText  : "true",
291      falseText : "false",
292      undefinedText: '&#160;'
293   });
294}
295
296if(Ext.grid.NumberColumn){
297    Ext.apply(Ext.grid.NumberColumn.prototype, {
298        format : '0,000.00'
299    });
300}
301
302if(Ext.grid.DateColumn){
303    Ext.apply(Ext.grid.DateColumn.prototype, {
304        format : 'm/d/Y'
305    });
306}
307
308if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
309  Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
310    splitTip            : "Drag to resize.",
311    collapsibleSplitTip : "Drag to resize. Double click to hide."
312  });
313}
314
315if(Ext.form.TimeField){
316  Ext.apply(Ext.form.TimeField.prototype, {
317    minText : "The time in this field must be equal to or after {0}",
318    maxText : "The time in this field must be equal to or before {0}",
319    invalidText : "{0} is not a valid time",
320    format : "g:i A",
321    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"
322  });
323}
324
325if(Ext.form.CheckboxGroup){
326  Ext.apply(Ext.form.CheckboxGroup.prototype, {
327    blankText : "You must select at least one item in this group"
328  });
329}
330
331if(Ext.form.RadioGroup){
332  Ext.apply(Ext.form.RadioGroup.prototype, {
333    blankText : "You must select one item in this group"
334  });
335}
Note: See TracBrowser for help on using the repository browser.