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'
128 if(Ext.form.BasicForm){
129 Ext.form.BasicForm.prototype.waitTitle = "Please Wait..."
133 Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
136 if(Ext.form.TextField){
137 Ext.apply(Ext.form.TextField.prototype, {
138 minLengthText : "The minimum length for this field is {0}",
139 maxLengthText : "The maximum length for this field is {0}",
140 blankText : "This field is required",
146 if(Ext.form.NumberField){
147 Ext.apply(Ext.form.NumberField.prototype, {
148 decimalSeparator : ".",
149 decimalPrecision : 2,
150 minText : "The minimum value for this field is {0}",
151 maxText : "The maximum value for this field is {0}",
152 nanText : "{0} is not a valid number"
156 if(Ext.form.DateField){
157 Ext.apply(Ext.form.DateField.prototype, {
158 disabledDaysText : "Disabled",
159 disabledDatesText : "Disabled",
160 minText : "The date in this field must be after {0}",
161 maxText : "The date in this field must be before {0}",
162 invalidText : "{0} is not a valid date - it must be in the format {1}",
164 altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
168 if(Ext.form.ComboBox){
169 Ext.apply(Ext.form.ComboBox.prototype, {
170 loadingText : "Loading...",
171 valueNotFoundText : undefined
176 Ext.apply(Ext.form.VTypes, {
177 emailText : 'This field should be an e-mail address in the format "user@example.com"',
178 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
179 alphaText : 'This field should only contain letters and _',
180 alphanumText : 'This field should only contain letters, numbers and _'
184 if(Ext.form.HtmlEditor){
185 Ext.apply(Ext.form.HtmlEditor.prototype, {
186 createLinkText : 'Please enter the URL for the link:',
189 title: 'Bold (Ctrl+B)',
190 text: 'Make the selected text bold.',
191 cls: 'x-html-editor-tip'
194 title: 'Italic (Ctrl+I)',
195 text: 'Make the selected text italic.',
196 cls: 'x-html-editor-tip'
199 title: 'Underline (Ctrl+U)',
200 text: 'Underline the selected text.',
201 cls: 'x-html-editor-tip'
205 text: 'Increase the font size.',
206 cls: 'x-html-editor-tip'
209 title: 'Shrink Text',
210 text: 'Decrease the font size.',
211 cls: 'x-html-editor-tip'
214 title: 'Text Highlight Color',
215 text: 'Change the background color of the selected text.',
216 cls: 'x-html-editor-tip'
220 text: 'Change the color of the selected text.',
221 cls: 'x-html-editor-tip'
224 title: 'Align Text Left',
225 text: 'Align text to the left.',
226 cls: 'x-html-editor-tip'
229 title: 'Center Text',
230 text: 'Center text in the editor.',
231 cls: 'x-html-editor-tip'
234 title: 'Align Text Right',
235 text: 'Align text to the right.',
236 cls: 'x-html-editor-tip'
238 insertunorderedlist : {
239 title: 'Bullet List',
240 text: 'Start a bulleted list.',
241 cls: 'x-html-editor-tip'
243 insertorderedlist : {
244 title: 'Numbered List',
245 text: 'Start a numbered list.',
246 cls: 'x-html-editor-tip'
250 text: 'Make the selected text a hyperlink.',
251 cls: 'x-html-editor-tip'
254 title: 'Source Edit',
255 text: 'Switch to source editing mode.',
256 cls: 'x-html-editor-tip'
262 if(Ext.grid.GridView){
263 Ext.apply(Ext.grid.GridView.prototype, {
264 sortAscText : "Sort Ascending",
265 sortDescText : "Sort Descending",
266 columnsText : "Columns"
270 if(Ext.grid.GroupingView){
271 Ext.apply(Ext.grid.GroupingView.prototype, {
272 emptyGroupText : '(None)',
273 groupByText : 'Group By This Field',
274 showGroupsText : 'Show in Groups'
278 if(Ext.grid.PropertyColumnModel){
279 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
282 dateFormat : "m/j/Y",
288 if(Ext.grid.BooleanColumn){
289 Ext.apply(Ext.grid.BooleanColumn.prototype, {
292 undefinedText: ' '
296 if(Ext.grid.NumberColumn){
297 Ext.apply(Ext.grid.NumberColumn.prototype, {
302 if(Ext.grid.DateColumn){
303 Ext.apply(Ext.grid.DateColumn.prototype, {
308 if(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."
315 if(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",
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"
325 if(Ext.form.CheckboxGroup){
326 Ext.apply(Ext.form.CheckboxGroup.prototype, {
327 blankText : "You must select at least one item in this group"
331 if(Ext.form.RadioGroup){
332 Ext.apply(Ext.form.RadioGroup.prototype, {
333 blankText : "You must select one item in this group"