3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 * List compiled by mystix on the extjs.com forums.
19 * English Translations
20 * updated to 2.2 by Condor (8 Aug 2008)
22 Ext.onReady(function() {
24 Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
28 Ext.data.Types.stripRe = /[\$,%]/g;
32 Ext.view.View.prototype.emptyText = "";
36 Ext.grid.Panel.prototype.ddText = "{0} selected row{1}";
40 Ext.LoadMask.prototype.msg = "Loading...";
44 Ext.Date.monthNames = [
59 Ext.Date.getShortMonthName = function(month) {
60 return Ext.Date.monthNames[month].substring(0, 3);
63 Ext.Date.monthNumbers = {
78 Ext.Date.getMonthNumber = function(name) {
79 return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
92 Ext.Date.getShortDayName = function(day) {
93 return Ext.Date.dayNames[day].substring(0, 3);
96 Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
100 Ext.MessageBox.buttonText = {
109 Ext.apply(Ext.util.Format, {
110 thousandSeparator: ',',
111 decimalSeparator: '.',
118 Ext.apply(Ext.picker.Date.prototype, {
120 minText : "This date is before the minimum date",
121 maxText : "This date is after the maximum date",
122 disabledDaysText : "",
123 disabledDatesText : "",
124 monthNames : Ext.Date.monthNames,
125 dayNames : Ext.Date.dayNames,
126 nextText : 'Next Month (Control+Right)',
127 prevText : 'Previous Month (Control+Left)',
128 monthYearText : 'Choose a month (Control+Up/Down to move years)',
129 todayTip : "{0} (Spacebar)",
135 if(Ext.picker.Month) {
136 Ext.apply(Ext.picker.Month.prototype, {
137 okText : " OK ",
138 cancelText : "Cancel"
142 if(Ext.toolbar.Paging){
143 Ext.apply(Ext.PagingToolbar.prototype, {
144 beforePageText : "Page",
145 afterPageText : "of {0}",
146 firstText : "First Page",
147 prevText : "Previous Page",
148 nextText : "Next Page",
149 lastText : "Last Page",
150 refreshText : "Refresh",
151 displayMsg : "Displaying {0} - {1} of {2}",
152 emptyMsg : 'No data to display'
157 Ext.form.Basic.prototype.waitTitle = "Please Wait...";
160 if(Ext.form.field.Base){
161 Ext.form.field.Base.prototype.invalidText = "The value in this field is invalid";
164 if(Ext.form.field.Text){
165 Ext.apply(Ext.form.field.Text.prototype, {
166 minLengthText : "The minimum length for this field is {0}",
167 maxLengthText : "The maximum length for this field is {0}",
168 blankText : "This field is required",
174 if(Ext.form.field.Number){
175 Ext.apply(Ext.form.field.Number.prototype, {
176 decimalSeparator : ".",
177 decimalPrecision : 2,
178 minText : "The minimum value for this field is {0}",
179 maxText : "The maximum value for this field is {0}",
180 nanText : "{0} is not a valid number"
184 if(Ext.form.field.Date){
185 Ext.apply(Ext.form.field.Date.prototype, {
186 disabledDaysText : "Disabled",
187 disabledDatesText : "Disabled",
188 minText : "The date in this field must be after {0}",
189 maxText : "The date in this field must be before {0}",
190 invalidText : "{0} is not a valid date - it must be in the format {1}",
192 altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
196 if(Ext.form.field.ComboBox){
197 Ext.apply(Ext.form.field.ComboBox.prototype, {
198 valueNotFoundText : undefined
200 Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
201 loadingText : "Loading..."
205 if(Ext.form.field.VTypes){
206 Ext.apply(Ext.form.field.VTypes, {
207 emailText : 'This field should be an e-mail address in the format "user@example.com"',
208 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
209 alphaText : 'This field should only contain letters and _',
210 alphanumText : 'This field should only contain letters, numbers and _'
214 if(Ext.form.field.HtmlEditor){
215 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
216 createLinkText : 'Please enter the URL for the link:',
219 title: 'Bold (Ctrl+B)',
220 text: 'Make the selected text bold.',
221 cls: Ext.baseCSSPrefix + 'html-editor-tip'
224 title: 'Italic (Ctrl+I)',
225 text: 'Make the selected text italic.',
226 cls: Ext.baseCSSPrefix + 'html-editor-tip'
229 title: 'Underline (Ctrl+U)',
230 text: 'Underline the selected text.',
231 cls: Ext.baseCSSPrefix + 'html-editor-tip'
235 text: 'Increase the font size.',
236 cls: Ext.baseCSSPrefix + 'html-editor-tip'
239 title: 'Shrink Text',
240 text: 'Decrease the font size.',
241 cls: Ext.baseCSSPrefix + 'html-editor-tip'
244 title: 'Text Highlight Color',
245 text: 'Change the background color of the selected text.',
246 cls: Ext.baseCSSPrefix + 'html-editor-tip'
250 text: 'Change the color of the selected text.',
251 cls: Ext.baseCSSPrefix + 'html-editor-tip'
254 title: 'Align Text Left',
255 text: 'Align text to the left.',
256 cls: Ext.baseCSSPrefix + 'html-editor-tip'
259 title: 'Center Text',
260 text: 'Center text in the editor.',
261 cls: Ext.baseCSSPrefix + 'html-editor-tip'
264 title: 'Align Text Right',
265 text: 'Align text to the right.',
266 cls: Ext.baseCSSPrefix + 'html-editor-tip'
268 insertunorderedlist : {
269 title: 'Bullet List',
270 text: 'Start a bulleted list.',
271 cls: Ext.baseCSSPrefix + 'html-editor-tip'
273 insertorderedlist : {
274 title: 'Numbered List',
275 text: 'Start a numbered list.',
276 cls: Ext.baseCSSPrefix + 'html-editor-tip'
280 text: 'Make the selected text a hyperlink.',
281 cls: Ext.baseCSSPrefix + 'html-editor-tip'
284 title: 'Source Edit',
285 text: 'Switch to source editing mode.',
286 cls: Ext.baseCSSPrefix + 'html-editor-tip'
292 if(Ext.grid.header.Container){
293 Ext.apply(Ext.grid.header.Container.prototype, {
294 sortAscText : "Sort Ascending",
295 sortDescText : "Sort Descending",
296 columnsText : "Columns"
300 if(Ext.grid.GroupingFeature){
301 Ext.apply(Ext.grid.GroupingFeature.prototype, {
302 emptyGroupText : '(None)',
303 groupByText : 'Group By This Field',
304 showGroupsText : 'Show in Groups'
308 if(Ext.grid.PropertyColumnModel){
309 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
312 dateFormat : "m/j/Y",
318 if(Ext.grid.BooleanColumn){
319 Ext.apply(Ext.grid.BooleanColumn.prototype, {
322 undefinedText: ' '
326 if(Ext.grid.NumberColumn){
327 Ext.apply(Ext.grid.NumberColumn.prototype, {
332 if(Ext.grid.DateColumn){
333 Ext.apply(Ext.grid.DateColumn.prototype, {
338 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
339 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
340 splitTip : "Drag to resize.",
341 collapsibleSplitTip : "Drag to resize. Double click to hide."
345 if(Ext.form.field.Time){
346 Ext.apply(Ext.form.field.Time.prototype, {
347 minText : "The time in this field must be equal to or after {0}",
348 maxText : "The time in this field must be equal to or before {0}",
349 invalidText : "{0} is not a valid time",
351 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"
355 if(Ext.form.CheckboxGroup){
356 Ext.apply(Ext.form.CheckboxGroup.prototype, {
357 blankText : "You must select at least one item in this group"
361 if(Ext.form.RadioGroup){
362 Ext.apply(Ext.form.RadioGroup.prototype, {
363 blankText : "You must select one item in this group"