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 (UK) 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>';
27 Ext.view.View.prototype.emptyText = "";
31 Ext.grid.Panel.prototype.ddText = "{0} selected row{1}";
35 Ext.LoadMask.prototype.msg = "Loading...";
39 Ext.Date.monthNames = [
54 Ext.Date.getShortMonthName = function(month) {
55 return Ext.Date.monthNames[month].substring(0, 3);
58 Ext.Date.monthNumbers = {
73 Ext.Date.getMonthNumber = function(name) {
74 return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
87 Ext.Date.getShortDayName = function(day) {
88 return Ext.Date.dayNames[day].substring(0, 3);
91 Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
95 Ext.MessageBox.buttonText = {
104 Ext.apply(Ext.util.Format, {
105 thousandSeparator: ',',
106 decimalSeparator: '.',
107 currencySign: '£', // UK Pound
113 Ext.apply(Ext.picker.Date.prototype, {
115 minText : "This date is before the minimum date",
116 maxText : "This date is after the maximum date",
117 disabledDaysText : "",
118 disabledDatesText : "",
119 monthNames : Ext.Date.monthNames,
120 dayNames : Ext.Date.dayNames,
121 nextText : 'Next Month (Control+Right)',
122 prevText : 'Previous Month (Control+Left)',
123 monthYearText : 'Choose a month (Control+Up/Down to move years)',
124 todayTip : "{0} (Spacebar)",
130 if(Ext.picker.Month) {
131 Ext.apply(Ext.picker.Month.prototype, {
132 okText : " OK ",
133 cancelText : "Cancel"
137 if(Ext.toolbar.Paging){
138 Ext.apply(Ext.PagingToolbar.prototype, {
139 beforePageText : "Page",
140 afterPageText : "of {0}",
141 firstText : "First Page",
142 prevText : "Previous Page",
143 nextText : "Next Page",
144 lastText : "Last Page",
145 refreshText : "Refresh",
146 displayMsg : "Displaying {0} - {1} of {2}",
147 emptyMsg : 'No data to display'
152 Ext.form.Basic.prototype.waitTitle = "Please Wait...";
155 if(Ext.form.field.Base){
156 Ext.form.field.Base.prototype.invalidText = "The value in this field is invalid";
159 if(Ext.form.field.Text){
160 Ext.apply(Ext.form.field.Text.prototype, {
161 minLengthText : "The minimum length for this field is {0}",
162 maxLengthText : "The maximum length for this field is {0}",
163 blankText : "This field is required",
169 if(Ext.form.field.Number){
170 Ext.apply(Ext.form.field.Number.prototype, {
171 decimalSeparator : ".",
172 decimalPrecision : 2,
173 minText : "The minimum value for this field is {0}",
174 maxText : "The maximum value for this field is {0}",
175 nanText : "{0} is not a valid number"
179 if(Ext.form.field.Date){
180 Ext.apply(Ext.form.field.Date.prototype, {
181 disabledDaysText : "Disabled",
182 disabledDatesText : "Disabled",
183 minText : "The date in this field must be after {0}",
184 maxText : "The date in this field must be before {0}",
185 invalidText : "{0} is not a valid date - it must be in the format {1}",
187 altFormats : "d/m/Y|d/m/y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
191 if(Ext.form.field.ComboBox){
192 Ext.apply(Ext.form.field.ComboBox.prototype, {
193 loadingText : "Loading...",
194 valueNotFoundText : undefined
198 if(Ext.form.field.VTypes){
199 Ext.apply(Ext.form.field.VTypes, {
200 emailText : 'This field should be an e-mail address in the format "user@example.com"',
201 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
202 alphaText : 'This field should only contain letters and _',
203 alphanumText : 'This field should only contain letters, numbers and _'
207 if(Ext.form.field.HtmlEditor){
208 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
209 createLinkText : 'Please enter the URL for the link:',
212 title: 'Bold (Ctrl+B)',
213 text: 'Make the selected text bold.',
214 cls: Ext.baseCSSPrefix + 'html-editor-tip'
217 title: 'Italic (Ctrl+I)',
218 text: 'Make the selected text italic.',
219 cls: Ext.baseCSSPrefix + 'html-editor-tip'
222 title: 'Underline (Ctrl+U)',
223 text: 'Underline the selected text.',
224 cls: Ext.baseCSSPrefix + 'html-editor-tip'
228 text: 'Increase the font size.',
229 cls: Ext.baseCSSPrefix + 'html-editor-tip'
232 title: 'Shrink Text',
233 text: 'Decrease the font size.',
234 cls: Ext.baseCSSPrefix + 'html-editor-tip'
237 title: 'Text Highlight Color',
238 text: 'Change the background color of the selected text.',
239 cls: Ext.baseCSSPrefix + 'html-editor-tip'
243 text: 'Change the color of the selected text.',
244 cls: Ext.baseCSSPrefix + 'html-editor-tip'
247 title: 'Align Text Left',
248 text: 'Align text to the left.',
249 cls: Ext.baseCSSPrefix + 'html-editor-tip'
252 title: 'Center Text',
253 text: 'Center text in the editor.',
254 cls: Ext.baseCSSPrefix + 'html-editor-tip'
257 title: 'Align Text Right',
258 text: 'Align text to the right.',
259 cls: Ext.baseCSSPrefix + 'html-editor-tip'
261 insertunorderedlist : {
262 title: 'Bullet List',
263 text: 'Start a bulleted list.',
264 cls: Ext.baseCSSPrefix + 'html-editor-tip'
266 insertorderedlist : {
267 title: 'Numbered List',
268 text: 'Start a numbered list.',
269 cls: Ext.baseCSSPrefix + 'html-editor-tip'
273 text: 'Make the selected text a hyperlink.',
274 cls: Ext.baseCSSPrefix + 'html-editor-tip'
277 title: 'Source Edit',
278 text: 'Switch to source editing mode.',
279 cls: Ext.baseCSSPrefix + 'html-editor-tip'
285 if(Ext.grid.header.Container){
286 Ext.apply(Ext.grid.header.Container.prototype, {
287 sortAscText : "Sort Ascending",
288 sortDescText : "Sort Descending",
289 columnsText : "Columns"
293 if(Ext.grid.GroupingFeature){
294 Ext.apply(Ext.grid.GroupingFeature.prototype, {
295 emptyGroupText : '(None)',
296 groupByText : 'Group By This Field',
297 showGroupsText : 'Show in Groups'
301 if(Ext.grid.PropertyColumnModel){
302 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
305 dateFormat : "j/m/Y",
311 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
312 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
313 splitTip : "Drag to resize.",
314 collapsibleSplitTip : "Drag to resize. Double click to hide."
318 if(Ext.form.field.Time){
319 Ext.apply(Ext.form.field.Time.prototype, {
320 minText : "The time in this field must be equal to or after {0}",
321 maxText : "The time in this field must be equal to or before {0}",
322 invalidText : "{0} is not a valid time",
324 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"
328 if(Ext.form.CheckboxGroup){
329 Ext.apply(Ext.form.CheckboxGroup.prototype, {
330 blankText : "You must select at least one item in this group"
334 if(Ext.form.RadioGroup){
335 Ext.apply(Ext.form.RadioGroup.prototype, {
336 blankText : "You must select one item in this group"