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 loadingText : "Loading...",
199 valueNotFoundText : undefined
203 if(Ext.form.field.VTypes){
204 Ext.apply(Ext.form.field.VTypes, {
205 emailText : 'This field should be an e-mail address in the format "user@example.com"',
206 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
207 alphaText : 'This field should only contain letters and _',
208 alphanumText : 'This field should only contain letters, numbers and _'
212 if(Ext.form.field.HtmlEditor){
213 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
214 createLinkText : 'Please enter the URL for the link:',
217 title: 'Bold (Ctrl+B)',
218 text: 'Make the selected text bold.',
219 cls: Ext.baseCSSPrefix + 'html-editor-tip'
222 title: 'Italic (Ctrl+I)',
223 text: 'Make the selected text italic.',
224 cls: Ext.baseCSSPrefix + 'html-editor-tip'
227 title: 'Underline (Ctrl+U)',
228 text: 'Underline the selected text.',
229 cls: Ext.baseCSSPrefix + 'html-editor-tip'
233 text: 'Increase the font size.',
234 cls: Ext.baseCSSPrefix + 'html-editor-tip'
237 title: 'Shrink Text',
238 text: 'Decrease the font size.',
239 cls: Ext.baseCSSPrefix + 'html-editor-tip'
242 title: 'Text Highlight Color',
243 text: 'Change the background color of the selected text.',
244 cls: Ext.baseCSSPrefix + 'html-editor-tip'
248 text: 'Change the color of the selected text.',
249 cls: Ext.baseCSSPrefix + 'html-editor-tip'
252 title: 'Align Text Left',
253 text: 'Align text to the left.',
254 cls: Ext.baseCSSPrefix + 'html-editor-tip'
257 title: 'Center Text',
258 text: 'Center text in the editor.',
259 cls: Ext.baseCSSPrefix + 'html-editor-tip'
262 title: 'Align Text Right',
263 text: 'Align text to the right.',
264 cls: Ext.baseCSSPrefix + 'html-editor-tip'
266 insertunorderedlist : {
267 title: 'Bullet List',
268 text: 'Start a bulleted list.',
269 cls: Ext.baseCSSPrefix + 'html-editor-tip'
271 insertorderedlist : {
272 title: 'Numbered List',
273 text: 'Start a numbered list.',
274 cls: Ext.baseCSSPrefix + 'html-editor-tip'
278 text: 'Make the selected text a hyperlink.',
279 cls: Ext.baseCSSPrefix + 'html-editor-tip'
282 title: 'Source Edit',
283 text: 'Switch to source editing mode.',
284 cls: Ext.baseCSSPrefix + 'html-editor-tip'
290 if(Ext.grid.header.Container){
291 Ext.apply(Ext.grid.header.Container.prototype, {
292 sortAscText : "Sort Ascending",
293 sortDescText : "Sort Descending",
294 columnsText : "Columns"
298 if(Ext.grid.GroupingFeature){
299 Ext.apply(Ext.grid.GroupingFeature.prototype, {
300 emptyGroupText : '(None)',
301 groupByText : 'Group By This Field',
302 showGroupsText : 'Show in Groups'
306 if(Ext.grid.PropertyColumnModel){
307 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
310 dateFormat : "m/j/Y",
316 if(Ext.grid.BooleanColumn){
317 Ext.apply(Ext.grid.BooleanColumn.prototype, {
320 undefinedText: ' '
324 if(Ext.grid.NumberColumn){
325 Ext.apply(Ext.grid.NumberColumn.prototype, {
330 if(Ext.grid.DateColumn){
331 Ext.apply(Ext.grid.DateColumn.prototype, {
336 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
337 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
338 splitTip : "Drag to resize.",
339 collapsibleSplitTip : "Drag to resize. Double click to hide."
343 if(Ext.form.field.Time){
344 Ext.apply(Ext.form.field.Time.prototype, {
345 minText : "The time in this field must be equal to or after {0}",
346 maxText : "The time in this field must be equal to or before {0}",
347 invalidText : "{0} is not a valid time",
349 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"
353 if(Ext.form.CheckboxGroup){
354 Ext.apply(Ext.form.CheckboxGroup.prototype, {
355 blankText : "You must select at least one item in this group"
359 if(Ext.form.RadioGroup){
360 Ext.apply(Ext.form.RadioGroup.prototype, {
361 blankText : "You must select one item in this group"