PageRenderTime 37ms CodeModel.GetById 9ms app.highlight 22ms RepoModel.GetById 1ms app.codeStats 1ms

/source/Plug-in/ext/build/locale/ext-lang-en.js

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