2 * List compiled by mystix on the extjs.com forums.
6 * updated to 2.2 by Condor (8 Aug 2008)
8 Ext.onReady(function() {
10 Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
14 Ext.data.Types.stripRe = /[\$,%]/g;
18 Ext.view.View.prototype.emptyText = "";
22 Ext.grid.Panel.prototype.ddText = "{0} selected row{1}";
26 Ext.LoadMask.prototype.msg = "Loading...";
30 Ext.Date.monthNames = [
45 Ext.Date.getShortMonthName = function(month) {
46 return Ext.Date.monthNames[month].substring(0, 3);
49 Ext.Date.monthNumbers = {
64 Ext.Date.getMonthNumber = function(name) {
65 return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
78 Ext.Date.getShortDayName = function(day) {
79 return Ext.Date.dayNames[day].substring(0, 3);
82 Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
86 Ext.MessageBox.buttonText = {
95 Ext.apply(Ext.util.Format, {
96 thousandSeparator: ',',
97 decimalSeparator: '.',
104 Ext.apply(Ext.picker.Date.prototype, {
106 minText : "This date is before the minimum date",
107 maxText : "This date is after the maximum date",
108 disabledDaysText : "",
109 disabledDatesText : "",
110 monthNames : Ext.Date.monthNames,
111 dayNames : Ext.Date.dayNames,
112 nextText : 'Next Month (Control+Right)',
113 prevText : 'Previous Month (Control+Left)',
114 monthYearText : 'Choose a month (Control+Up/Down to move years)',
115 todayTip : "{0} (Spacebar)",
121 if(Ext.picker.Month) {
122 Ext.apply(Ext.picker.Month.prototype, {
123 okText : " OK ",
124 cancelText : "Cancel"
128 if(Ext.toolbar.Paging){
129 Ext.apply(Ext.PagingToolbar.prototype, {
130 beforePageText : "Page",
131 afterPageText : "of {0}",
132 firstText : "First Page",
133 prevText : "Previous Page",
134 nextText : "Next Page",
135 lastText : "Last Page",
136 refreshText : "Refresh",
137 displayMsg : "Displaying {0} - {1} of {2}",
138 emptyMsg : 'No data to display'
143 Ext.form.Basic.prototype.waitTitle = "Please Wait...";
146 if(Ext.form.field.Base){
147 Ext.form.field.Base.prototype.invalidText = "The value in this field is invalid";
150 if(Ext.form.field.Text){
151 Ext.apply(Ext.form.field.Text.prototype, {
152 minLengthText : "The minimum length for this field is {0}",
153 maxLengthText : "The maximum length for this field is {0}",
154 blankText : "This field is required",
160 if(Ext.form.field.Number){
161 Ext.apply(Ext.form.field.Number.prototype, {
162 decimalSeparator : ".",
163 decimalPrecision : 2,
164 minText : "The minimum value for this field is {0}",
165 maxText : "The maximum value for this field is {0}",
166 nanText : "{0} is not a valid number"
170 if(Ext.form.field.Date){
171 Ext.apply(Ext.form.field.Date.prototype, {
172 disabledDaysText : "Disabled",
173 disabledDatesText : "Disabled",
174 minText : "The date in this field must be after {0}",
175 maxText : "The date in this field must be before {0}",
176 invalidText : "{0} is not a valid date - it must be in the format {1}",
178 altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
182 if(Ext.form.field.ComboBox){
183 Ext.apply(Ext.form.field.ComboBox.prototype, {
184 loadingText : "Loading...",
185 valueNotFoundText : undefined
189 if(Ext.form.field.VTypes){
190 Ext.apply(Ext.form.field.VTypes, {
191 emailText : 'This field should be an e-mail address in the format "user@example.com"',
192 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
193 alphaText : 'This field should only contain letters and _',
194 alphanumText : 'This field should only contain letters, numbers and _'
198 if(Ext.form.field.HtmlEditor){
199 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
200 createLinkText : 'Please enter the URL for the link:',
203 title: 'Bold (Ctrl+B)',
204 text: 'Make the selected text bold.',
205 cls: Ext.baseCSSPrefix + 'html-editor-tip'
208 title: 'Italic (Ctrl+I)',
209 text: 'Make the selected text italic.',
210 cls: Ext.baseCSSPrefix + 'html-editor-tip'
213 title: 'Underline (Ctrl+U)',
214 text: 'Underline the selected text.',
215 cls: Ext.baseCSSPrefix + 'html-editor-tip'
219 text: 'Increase the font size.',
220 cls: Ext.baseCSSPrefix + 'html-editor-tip'
223 title: 'Shrink Text',
224 text: 'Decrease the font size.',
225 cls: Ext.baseCSSPrefix + 'html-editor-tip'
228 title: 'Text Highlight Color',
229 text: 'Change the background color of the selected text.',
230 cls: Ext.baseCSSPrefix + 'html-editor-tip'
234 text: 'Change the color of the selected text.',
235 cls: Ext.baseCSSPrefix + 'html-editor-tip'
238 title: 'Align Text Left',
239 text: 'Align text to the left.',
240 cls: Ext.baseCSSPrefix + 'html-editor-tip'
243 title: 'Center Text',
244 text: 'Center text in the editor.',
245 cls: Ext.baseCSSPrefix + 'html-editor-tip'
248 title: 'Align Text Right',
249 text: 'Align text to the right.',
250 cls: Ext.baseCSSPrefix + 'html-editor-tip'
252 insertunorderedlist : {
253 title: 'Bullet List',
254 text: 'Start a bulleted list.',
255 cls: Ext.baseCSSPrefix + 'html-editor-tip'
257 insertorderedlist : {
258 title: 'Numbered List',
259 text: 'Start a numbered list.',
260 cls: Ext.baseCSSPrefix + 'html-editor-tip'
264 text: 'Make the selected text a hyperlink.',
265 cls: Ext.baseCSSPrefix + 'html-editor-tip'
268 title: 'Source Edit',
269 text: 'Switch to source editing mode.',
270 cls: Ext.baseCSSPrefix + 'html-editor-tip'
276 if(Ext.grid.header.Container){
277 Ext.apply(Ext.grid.header.Container.prototype, {
278 sortAscText : "Sort Ascending",
279 sortDescText : "Sort Descending",
280 columnsText : "Columns"
284 if(Ext.grid.GroupingFeature){
285 Ext.apply(Ext.grid.GroupingFeature.prototype, {
286 emptyGroupText : '(None)',
287 groupByText : 'Group By This Field',
288 showGroupsText : 'Show in Groups'
292 if(Ext.grid.PropertyColumnModel){
293 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
296 dateFormat : "m/j/Y",
302 if(Ext.grid.BooleanColumn){
303 Ext.apply(Ext.grid.BooleanColumn.prototype, {
306 undefinedText: ' '
310 if(Ext.grid.NumberColumn){
311 Ext.apply(Ext.grid.NumberColumn.prototype, {
316 if(Ext.grid.DateColumn){
317 Ext.apply(Ext.grid.DateColumn.prototype, {
322 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
323 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
324 splitTip : "Drag to resize.",
325 collapsibleSplitTip : "Drag to resize. Double click to hide."
329 if(Ext.form.field.Time){
330 Ext.apply(Ext.form.field.Time.prototype, {
331 minText : "The time in this field must be equal to or after {0}",
332 maxText : "The time in this field must be equal to or before {0}",
333 invalidText : "{0} is not a valid time",
335 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"
339 if(Ext.form.CheckboxGroup){
340 Ext.apply(Ext.form.CheckboxGroup.prototype, {
341 blankText : "You must select at least one item in this group"
345 if(Ext.form.RadioGroup){
346 Ext.apply(Ext.form.RadioGroup.prototype, {
347 blankText : "You must select one item in this group"