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 valueNotFoundText : undefined
195 Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
196 loadingText : "Loading..."
200 if(Ext.form.field.VTypes){
201 Ext.apply(Ext.form.field.VTypes, {
202 emailText : 'This field should be an e-mail address in the format "user@example.com"',
203 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
204 alphaText : 'This field should only contain letters and _',
205 alphanumText : 'This field should only contain letters, numbers and _'
209 if(Ext.form.field.HtmlEditor){
210 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
211 createLinkText : 'Please enter the URL for the link:',
214 title: 'Bold (Ctrl+B)',
215 text: 'Make the selected text bold.',
216 cls: Ext.baseCSSPrefix + 'html-editor-tip'
219 title: 'Italic (Ctrl+I)',
220 text: 'Make the selected text italic.',
221 cls: Ext.baseCSSPrefix + 'html-editor-tip'
224 title: 'Underline (Ctrl+U)',
225 text: 'Underline the selected text.',
226 cls: Ext.baseCSSPrefix + 'html-editor-tip'
230 text: 'Increase the font size.',
231 cls: Ext.baseCSSPrefix + 'html-editor-tip'
234 title: 'Shrink Text',
235 text: 'Decrease the font size.',
236 cls: Ext.baseCSSPrefix + 'html-editor-tip'
239 title: 'Text Highlight Color',
240 text: 'Change the background color of the selected text.',
241 cls: Ext.baseCSSPrefix + 'html-editor-tip'
245 text: 'Change the color of the selected text.',
246 cls: Ext.baseCSSPrefix + 'html-editor-tip'
249 title: 'Align Text Left',
250 text: 'Align text to the left.',
251 cls: Ext.baseCSSPrefix + 'html-editor-tip'
254 title: 'Center Text',
255 text: 'Center text in the editor.',
256 cls: Ext.baseCSSPrefix + 'html-editor-tip'
259 title: 'Align Text Right',
260 text: 'Align text to the right.',
261 cls: Ext.baseCSSPrefix + 'html-editor-tip'
263 insertunorderedlist : {
264 title: 'Bullet List',
265 text: 'Start a bulleted list.',
266 cls: Ext.baseCSSPrefix + 'html-editor-tip'
268 insertorderedlist : {
269 title: 'Numbered List',
270 text: 'Start a numbered list.',
271 cls: Ext.baseCSSPrefix + 'html-editor-tip'
275 text: 'Make the selected text a hyperlink.',
276 cls: Ext.baseCSSPrefix + 'html-editor-tip'
279 title: 'Source Edit',
280 text: 'Switch to source editing mode.',
281 cls: Ext.baseCSSPrefix + 'html-editor-tip'
287 if(Ext.grid.header.Container){
288 Ext.apply(Ext.grid.header.Container.prototype, {
289 sortAscText : "Sort Ascending",
290 sortDescText : "Sort Descending",
291 columnsText : "Columns"
295 if(Ext.grid.GroupingFeature){
296 Ext.apply(Ext.grid.GroupingFeature.prototype, {
297 emptyGroupText : '(None)',
298 groupByText : 'Group By This Field',
299 showGroupsText : 'Show in Groups'
303 if(Ext.grid.PropertyColumnModel){
304 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
307 dateFormat : "j/m/Y",
313 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
314 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
315 splitTip : "Drag to resize.",
316 collapsibleSplitTip : "Drag to resize. Double click to hide."
320 if(Ext.form.field.Time){
321 Ext.apply(Ext.form.field.Time.prototype, {
322 minText : "The time in this field must be equal to or after {0}",
323 maxText : "The time in this field must be equal to or before {0}",
324 invalidText : "{0} is not a valid time",
326 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"
330 if(Ext.form.CheckboxGroup){
331 Ext.apply(Ext.form.CheckboxGroup.prototype, {
332 blankText : "You must select at least one item in this group"
336 if(Ext.form.RadioGroup){
337 Ext.apply(Ext.form.RadioGroup.prototype, {
338 blankText : "You must select one item in this group"