3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
8 * List compiled by mystix on the extjs.com forums.
11 * English Translations
12 * updated to 2.2 by Condor (8 Aug 2008)
15 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
18 Ext.data.Types.stripRe = /[\$,%]/g;
22 Ext.DataView.prototype.emptyText = "";
25 if(Ext.grid.GridPanel){
26 Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
30 Ext.LoadMask.prototype.msg = "Loading...";
48 Date.getShortMonthName = function(month) {
49 return Date.monthNames[month].substring(0, 3);
67 Date.getMonthNumber = function(name) {
68 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
81 Date.getShortDayName = function(day) {
82 return Date.dayNames[day].substring(0, 3);
85 Date.parseCodes.S.s = "(?:st|nd|rd|th)";
88 Ext.MessageBox.buttonText = {
97 Ext.util.Format.date = function(v, format){
99 if(!(v instanceof Date)) v = new Date(Date.parse(v));
100 return v.dateFormat(format || "m/d/Y");
105 Ext.apply(Ext.DatePicker.prototype, {
107 minText : "This date is before the minimum date",
108 maxText : "This date is after the maximum date",
109 disabledDaysText : "",
110 disabledDatesText : "",
111 monthNames : Date.monthNames,
112 dayNames : Date.dayNames,
113 nextText : 'Next Month (Control+Right)',
114 prevText : 'Previous Month (Control+Left)',
115 monthYearText : 'Choose a month (Control+Up/Down to move years)',
116 todayTip : "{0} (Spacebar)",
118 okText : " OK ",
119 cancelText : "Cancel",
124 if(Ext.PagingToolbar){
125 Ext.apply(Ext.PagingToolbar.prototype, {
126 beforePageText : "Page",
127 afterPageText : "of {0}",
128 firstText : "First Page",
129 prevText : "Previous Page",
130 nextText : "Next Page",
131 lastText : "Last Page",
132 refreshText : "Refresh",
133 displayMsg : "Displaying {0} - {1} of {2}",
134 emptyMsg : 'No data to display'
138 if(Ext.form.BasicForm){
139 Ext.form.BasicForm.prototype.waitTitle = "Please Wait..."
143 Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
146 if(Ext.form.TextField){
147 Ext.apply(Ext.form.TextField.prototype, {
148 minLengthText : "The minimum length for this field is {0}",
149 maxLengthText : "The maximum length for this field is {0}",
150 blankText : "This field is required",
156 if(Ext.form.NumberField){
157 Ext.apply(Ext.form.NumberField.prototype, {
158 decimalSeparator : ".",
159 decimalPrecision : 2,
160 minText : "The minimum value for this field is {0}",
161 maxText : "The maximum value for this field is {0}",
162 nanText : "{0} is not a valid number"
166 if(Ext.form.DateField){
167 Ext.apply(Ext.form.DateField.prototype, {
168 disabledDaysText : "Disabled",
169 disabledDatesText : "Disabled",
170 minText : "The date in this field must be after {0}",
171 maxText : "The date in this field must be before {0}",
172 invalidText : "{0} is not a valid date - it must be in the format {1}",
174 altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
178 if(Ext.form.ComboBox){
179 Ext.apply(Ext.form.ComboBox.prototype, {
180 loadingText : "Loading...",
181 valueNotFoundText : undefined
186 Ext.apply(Ext.form.VTypes, {
187 emailText : 'This field should be an e-mail address in the format "user@example.com"',
188 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
189 alphaText : 'This field should only contain letters and _',
190 alphanumText : 'This field should only contain letters, numbers and _'
194 if(Ext.form.HtmlEditor){
195 Ext.apply(Ext.form.HtmlEditor.prototype, {
196 createLinkText : 'Please enter the URL for the link:',
199 title: 'Bold (Ctrl+B)',
200 text: 'Make the selected text bold.',
201 cls: 'x-html-editor-tip'
204 title: 'Italic (Ctrl+I)',
205 text: 'Make the selected text italic.',
206 cls: 'x-html-editor-tip'
209 title: 'Underline (Ctrl+U)',
210 text: 'Underline the selected text.',
211 cls: 'x-html-editor-tip'
215 text: 'Increase the font size.',
216 cls: 'x-html-editor-tip'
219 title: 'Shrink Text',
220 text: 'Decrease the font size.',
221 cls: 'x-html-editor-tip'
224 title: 'Text Highlight Color',
225 text: 'Change the background color of the selected text.',
226 cls: 'x-html-editor-tip'
230 text: 'Change the color of the selected text.',
231 cls: 'x-html-editor-tip'
234 title: 'Align Text Left',
235 text: 'Align text to the left.',
236 cls: 'x-html-editor-tip'
239 title: 'Center Text',
240 text: 'Center text in the editor.',
241 cls: 'x-html-editor-tip'
244 title: 'Align Text Right',
245 text: 'Align text to the right.',
246 cls: 'x-html-editor-tip'
248 insertunorderedlist : {
249 title: 'Bullet List',
250 text: 'Start a bulleted list.',
251 cls: 'x-html-editor-tip'
253 insertorderedlist : {
254 title: 'Numbered List',
255 text: 'Start a numbered list.',
256 cls: 'x-html-editor-tip'
260 text: 'Make the selected text a hyperlink.',
261 cls: 'x-html-editor-tip'
264 title: 'Source Edit',
265 text: 'Switch to source editing mode.',
266 cls: 'x-html-editor-tip'
272 if(Ext.grid.GridView){
273 Ext.apply(Ext.grid.GridView.prototype, {
274 sortAscText : "Sort Ascending",
275 sortDescText : "Sort Descending",
276 columnsText : "Columns"
280 if(Ext.grid.GroupingView){
281 Ext.apply(Ext.grid.GroupingView.prototype, {
282 emptyGroupText : '(None)',
283 groupByText : 'Group By This Field',
284 showGroupsText : 'Show in Groups'
288 if(Ext.grid.PropertyColumnModel){
289 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
292 dateFormat : "m/j/Y",
298 if(Ext.grid.BooleanColumn){
299 Ext.apply(Ext.grid.BooleanColumn.prototype, {
302 undefinedText: ' '
306 if(Ext.grid.NumberColumn){
307 Ext.apply(Ext.grid.NumberColumn.prototype, {
312 if(Ext.grid.DateColumn){
313 Ext.apply(Ext.grid.DateColumn.prototype, {
318 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
319 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
320 splitTip : "Drag to resize.",
321 collapsibleSplitTip : "Drag to resize. Double click to hide."
325 if(Ext.form.TimeField){
326 Ext.apply(Ext.form.TimeField.prototype, {
327 minText : "The time in this field must be equal to or after {0}",
328 maxText : "The time in this field must be equal to or before {0}",
329 invalidText : "{0} is not a valid time",
331 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"
335 if(Ext.form.CheckboxGroup){
336 Ext.apply(Ext.form.CheckboxGroup.prototype, {
337 blankText : "You must select at least one item in this group"
341 if(Ext.form.RadioGroup){
342 Ext.apply(Ext.form.RadioGroup.prototype, {
343 blankText : "You must select one item in this group"