3 * Copyright(c) 2006-2009 Ext JS, LLC
5 * http://www.extjs.com/license
8 * List compiled by mystix on the extjs.com forums.
11 * English (UK) Translations
12 * updated to 2.2 by Condor (8 Aug 2008)
15 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
18 Ext.DataView.prototype.emptyText = "";
21 if(Ext.grid.GridPanel){
22 Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
26 Ext.LoadMask.prototype.msg = "Loading...";
44 Date.getShortMonthName = function(month) {
45 return Date.monthNames[month].substring(0, 3);
63 Date.getMonthNumber = function(name) {
64 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
77 Date.getShortDayName = function(day) {
78 return Date.dayNames[day].substring(0, 3);
81 Date.parseCodes.S.s = "(?:st|nd|rd|th)";
84 Ext.MessageBox.buttonText = {
93 Ext.util.Format.date = function(v, format){
95 if(!(v instanceof Date)) v = new Date(Date.parse(v));
96 return v.dateFormat(format || "d/m/Y");
101 Ext.apply(Ext.DatePicker.prototype, {
103 minText : "This date is before the minimum date",
104 maxText : "This date is after the maximum date",
105 disabledDaysText : "",
106 disabledDatesText : "",
107 monthNames : Date.monthNames,
108 dayNames : Date.dayNames,
109 nextText : 'Next Month (Control+Right)',
110 prevText : 'Previous Month (Control+Left)',
111 monthYearText : 'Choose a month (Control+Up/Down to move years)',
112 todayTip : "{0} (Spacebar)",
114 okText : " OK ",
115 cancelText : "Cancel",
120 if(Ext.PagingToolbar){
121 Ext.apply(Ext.PagingToolbar.prototype, {
122 beforePageText : "Page",
123 afterPageText : "of {0}",
124 firstText : "First Page",
125 prevText : "Previous Page",
126 nextText : "Next Page",
127 lastText : "Last Page",
128 refreshText : "Refresh",
129 displayMsg : "Displaying {0} - {1} of {2}",
130 emptyMsg : 'No data to display'
135 Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
138 if(Ext.form.TextField){
139 Ext.apply(Ext.form.TextField.prototype, {
140 minLengthText : "The minimum length for this field is {0}",
141 maxLengthText : "The maximum length for this field is {0}",
142 blankText : "This field is required",
148 if(Ext.form.NumberField){
149 Ext.apply(Ext.form.NumberField.prototype, {
150 decimalSeparator : ".",
151 decimalPrecision : 2,
152 minText : "The minimum value for this field is {0}",
153 maxText : "The maximum value for this field is {0}",
154 nanText : "{0} is not a valid number"
158 if(Ext.form.DateField){
159 Ext.apply(Ext.form.DateField.prototype, {
160 disabledDaysText : "Disabled",
161 disabledDatesText : "Disabled",
162 minText : "The date in this field must be after {0}",
163 maxText : "The date in this field must be before {0}",
164 invalidText : "{0} is not a valid date - it must be in the format {1}",
166 altFormats : "d/m/Y|d/m/y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
170 if(Ext.form.ComboBox){
171 Ext.apply(Ext.form.ComboBox.prototype, {
172 loadingText : "Loading...",
173 valueNotFoundText : undefined
178 Ext.apply(Ext.form.VTypes, {
179 emailText : 'This field should be an e-mail address in the format "user@example.com"',
180 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
181 alphaText : 'This field should only contain letters and _',
182 alphanumText : 'This field should only contain letters, numbers and _'
186 if(Ext.form.HtmlEditor){
187 Ext.apply(Ext.form.HtmlEditor.prototype, {
188 createLinkText : 'Please enter the URL for the link:',
191 title: 'Bold (Ctrl+B)',
192 text: 'Make the selected text bold.',
193 cls: 'x-html-editor-tip'
196 title: 'Italic (Ctrl+I)',
197 text: 'Make the selected text italic.',
198 cls: 'x-html-editor-tip'
201 title: 'Underline (Ctrl+U)',
202 text: 'Underline the selected text.',
203 cls: 'x-html-editor-tip'
207 text: 'Increase the font size.',
208 cls: 'x-html-editor-tip'
211 title: 'Shrink Text',
212 text: 'Decrease the font size.',
213 cls: 'x-html-editor-tip'
216 title: 'Text Highlight Color',
217 text: 'Change the background color of the selected text.',
218 cls: 'x-html-editor-tip'
222 text: 'Change the color of the selected text.',
223 cls: 'x-html-editor-tip'
226 title: 'Align Text Left',
227 text: 'Align text to the left.',
228 cls: 'x-html-editor-tip'
231 title: 'Center Text',
232 text: 'Center text in the editor.',
233 cls: 'x-html-editor-tip'
236 title: 'Align Text Right',
237 text: 'Align text to the right.',
238 cls: 'x-html-editor-tip'
240 insertunorderedlist : {
241 title: 'Bullet List',
242 text: 'Start a bulleted list.',
243 cls: 'x-html-editor-tip'
245 insertorderedlist : {
246 title: 'Numbered List',
247 text: 'Start a numbered list.',
248 cls: 'x-html-editor-tip'
252 text: 'Make the selected text a hyperlink.',
253 cls: 'x-html-editor-tip'
256 title: 'Source Edit',
257 text: 'Switch to source editing mode.',
258 cls: 'x-html-editor-tip'
264 if(Ext.grid.GridView){
265 Ext.apply(Ext.grid.GridView.prototype, {
266 sortAscText : "Sort Ascending",
267 sortDescText : "Sort Descending",
268 columnsText : "Columns"
272 if(Ext.grid.GroupingView){
273 Ext.apply(Ext.grid.GroupingView.prototype, {
274 emptyGroupText : '(None)',
275 groupByText : 'Group By This Field',
276 showGroupsText : 'Show in Groups'
280 if(Ext.grid.PropertyColumnModel){
281 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
288 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
289 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
290 splitTip : "Drag to resize.",
291 collapsibleSplitTip : "Drag to resize. Double click to hide."
295 if(Ext.form.TimeField){
296 Ext.apply(Ext.form.TimeField.prototype, {
297 minText : "The time in this field must be equal to or after {0}",
298 maxText : "The time in this field must be equal to or before {0}",
299 invalidText : "{0} is not a valid time",
301 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"
305 if(Ext.form.CheckboxGroup){
306 Ext.apply(Ext.form.CheckboxGroup.prototype, {
307 blankText : "You must select at least one item in this group"
311 if(Ext.form.RadioGroup){
312 Ext.apply(Ext.form.RadioGroup.prototype, {
313 blankText : "You must select one item in this group"