2 * List compiled by mystix on the extjs.com forums.
6 * updated to 2.2 by Condor (8 Aug 2008)
9 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
12 Ext.DataView.prototype.emptyText = "";
15 if(Ext.grid.GridPanel){
16 Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
20 Ext.LoadMask.prototype.msg = "Loading...";
38 Date.getShortMonthName = function(month) {
39 return Date.monthNames[month].substring(0, 3);
57 Date.getMonthNumber = function(name) {
58 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
71 Date.getShortDayName = function(day) {
72 return Date.dayNames[day].substring(0, 3);
75 Date.parseCodes.S.s = "(?:st|nd|rd|th)";
78 Ext.MessageBox.buttonText = {
87 Ext.util.Format.date = function(v, format){
89 if(!(v instanceof Date)) v = new Date(Date.parse(v));
90 return v.dateFormat(format || "m/d/Y");
95 Ext.apply(Ext.DatePicker.prototype, {
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)",
108 okText : " OK ",
109 cancelText : "Cancel",
114 if(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'
129 Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
132 if(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",
142 if(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"
152 if(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}",
160 altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
164 if(Ext.form.ComboBox){
165 Ext.apply(Ext.form.ComboBox.prototype, {
166 loadingText : "Loading...",
167 valueNotFoundText : undefined
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 _'
180 if(Ext.form.HtmlEditor){
181 Ext.apply(Ext.form.HtmlEditor.prototype, {
182 createLinkText : 'Please enter the URL for the link:',
185 title: 'Bold (Ctrl+B)',
186 text: 'Make the selected text bold.',
187 cls: 'x-html-editor-tip'
190 title: 'Italic (Ctrl+I)',
191 text: 'Make the selected text italic.',
192 cls: 'x-html-editor-tip'
195 title: 'Underline (Ctrl+U)',
196 text: 'Underline the selected text.',
197 cls: 'x-html-editor-tip'
201 text: 'Increase the font size.',
202 cls: 'x-html-editor-tip'
205 title: 'Shrink Text',
206 text: 'Decrease the font size.',
207 cls: 'x-html-editor-tip'
210 title: 'Text Highlight Color',
211 text: 'Change the background color of the selected text.',
212 cls: 'x-html-editor-tip'
216 text: 'Change the color of the selected text.',
217 cls: 'x-html-editor-tip'
220 title: 'Align Text Left',
221 text: 'Align text to the left.',
222 cls: 'x-html-editor-tip'
225 title: 'Center Text',
226 text: 'Center text in the editor.',
227 cls: 'x-html-editor-tip'
230 title: 'Align Text Right',
231 text: 'Align text to the right.',
232 cls: 'x-html-editor-tip'
234 insertunorderedlist : {
235 title: 'Bullet List',
236 text: 'Start a bulleted list.',
237 cls: 'x-html-editor-tip'
239 insertorderedlist : {
240 title: 'Numbered List',
241 text: 'Start a numbered list.',
242 cls: 'x-html-editor-tip'
246 text: 'Make the selected text a hyperlink.',
247 cls: 'x-html-editor-tip'
250 title: 'Source Edit',
251 text: 'Switch to source editing mode.',
252 cls: 'x-html-editor-tip'
258 if(Ext.grid.GridView){
259 Ext.apply(Ext.grid.GridView.prototype, {
260 sortAscText : "Sort Ascending",
261 sortDescText : "Sort Descending",
262 columnsText : "Columns"
266 if(Ext.grid.GroupingView){
267 Ext.apply(Ext.grid.GroupingView.prototype, {
268 emptyGroupText : '(None)',
269 groupByText : 'Group By This Field',
270 showGroupsText : 'Show in Groups'
274 if(Ext.grid.PropertyColumnModel){
275 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
282 if(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."
289 if(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",
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"
299 if(Ext.form.CheckboxGroup){
300 Ext.apply(Ext.form.CheckboxGroup.prototype, {
301 blankText : "You must select at least one item in this group"
305 if(Ext.form.RadioGroup){
306 Ext.apply(Ext.form.RadioGroup.prototype, {
307 blankText : "You must select one item in this group"