3 * Copyright(c) 2006-2010 Sencha Inc.
5 * http://www.sencha.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",
179 if(Ext.form.ComboBox){
180 Ext.apply(Ext.form.ComboBox.prototype, {
181 loadingText : "Loading...",
182 valueNotFoundText : undefined
187 Ext.apply(Ext.form.VTypes, {
188 emailText : 'This field should be an e-mail address in the format "user@example.com"',
189 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
190 alphaText : 'This field should only contain letters and _',
191 alphanumText : 'This field should only contain letters, numbers and _'
195 if(Ext.form.HtmlEditor){
196 Ext.apply(Ext.form.HtmlEditor.prototype, {
197 createLinkText : 'Please enter the URL for the link:',
200 title: 'Bold (Ctrl+B)',
201 text: 'Make the selected text bold.',
202 cls: 'x-html-editor-tip'
205 title: 'Italic (Ctrl+I)',
206 text: 'Make the selected text italic.',
207 cls: 'x-html-editor-tip'
210 title: 'Underline (Ctrl+U)',
211 text: 'Underline the selected text.',
212 cls: 'x-html-editor-tip'
216 text: 'Increase the font size.',
217 cls: 'x-html-editor-tip'
220 title: 'Shrink Text',
221 text: 'Decrease the font size.',
222 cls: 'x-html-editor-tip'
225 title: 'Text Highlight Color',
226 text: 'Change the background color of the selected text.',
227 cls: 'x-html-editor-tip'
231 text: 'Change the color of the selected text.',
232 cls: 'x-html-editor-tip'
235 title: 'Align Text Left',
236 text: 'Align text to the left.',
237 cls: 'x-html-editor-tip'
240 title: 'Center Text',
241 text: 'Center text in the editor.',
242 cls: 'x-html-editor-tip'
245 title: 'Align Text Right',
246 text: 'Align text to the right.',
247 cls: 'x-html-editor-tip'
249 insertunorderedlist : {
250 title: 'Bullet List',
251 text: 'Start a bulleted list.',
252 cls: 'x-html-editor-tip'
254 insertorderedlist : {
255 title: 'Numbered List',
256 text: 'Start a numbered list.',
257 cls: 'x-html-editor-tip'
261 text: 'Make the selected text a hyperlink.',
262 cls: 'x-html-editor-tip'
265 title: 'Source Edit',
266 text: 'Switch to source editing mode.',
267 cls: 'x-html-editor-tip'
273 if(Ext.grid.GridView){
274 Ext.apply(Ext.grid.GridView.prototype, {
275 sortAscText : "Sort Ascending",
276 sortDescText : "Sort Descending",
277 columnsText : "Columns"
281 if(Ext.grid.GroupingView){
282 Ext.apply(Ext.grid.GroupingView.prototype, {
283 emptyGroupText : '(None)',
284 groupByText : 'Group By This Field',
285 showGroupsText : 'Show in Groups'
289 if(Ext.grid.PropertyColumnModel){
290 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
293 dateFormat : "m/j/Y",
299 if(Ext.grid.BooleanColumn){
300 Ext.apply(Ext.grid.BooleanColumn.prototype, {
303 undefinedText: ' '
307 if(Ext.grid.NumberColumn){
308 Ext.apply(Ext.grid.NumberColumn.prototype, {
313 if(Ext.grid.DateColumn){
314 Ext.apply(Ext.grid.DateColumn.prototype, {
319 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
320 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
321 splitTip : "Drag to resize.",
322 collapsibleSplitTip : "Drag to resize. Double click to hide."
326 if(Ext.form.TimeField){
327 Ext.apply(Ext.form.TimeField.prototype, {
328 minText : "The time in this field must be equal to or after {0}",
329 maxText : "The time in this field must be equal to or before {0}",
330 invalidText : "{0} is not a valid time",
332 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"
336 if(Ext.form.CheckboxGroup){
337 Ext.apply(Ext.form.CheckboxGroup.prototype, {
338 blankText : "You must select at least one item in this group"
342 if(Ext.form.RadioGroup){
343 Ext.apply(Ext.form.RadioGroup.prototype, {
344 blankText : "You must select one item in this group"