]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * List compiled by mystix on the extjs.com forums.\r | |
3 | * Thank you Mystix!\r | |
4 | *\r | |
5 | * English (UK) Translations\r | |
6 | * updated to 2.2 by Condor (8 Aug 2008)\r | |
7 | * updated by Dawesi (7 Dec 2012)\r | |
8 | */\r | |
9 | Ext.onReady(function() {\r | |
10 | \r | |
11 | if (Ext.Date) {\r | |
12 | Ext.Date.defaultDateFormat = "d/m/Y";\r | |
13 | Ext.Date.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];\r | |
14 | \r | |
15 | Ext.Date.getShortMonthName = function(month) {\r | |
16 | return Ext.Date.monthNames[month].substring(0, 3);\r | |
17 | };\r | |
18 | \r | |
19 | Ext.Date.monthNumbers = {\r | |
20 | Jan: 0,\r | |
21 | Feb: 1,\r | |
22 | Mar: 2,\r | |
23 | Apr: 3,\r | |
24 | May: 4,\r | |
25 | Jun: 5,\r | |
26 | Jul: 6,\r | |
27 | Aug: 7,\r | |
28 | Sep: 8,\r | |
29 | Oct: 9,\r | |
30 | Nov: 10,\r | |
31 | Dec: 11\r | |
32 | };\r | |
33 | \r | |
34 | Ext.Date.getMonthNumber = function(name) {\r | |
35 | return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];\r | |
36 | };\r | |
37 | \r | |
38 | Ext.Date.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];\r | |
39 | \r | |
40 | Ext.Date.getShortDayName = function(day) {\r | |
41 | return Ext.Date.dayNames[day].substring(0, 3);\r | |
42 | };\r | |
43 | \r | |
44 | Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";\r | |
45 | }\r | |
46 | \r | |
47 | if (Ext.util && Ext.util.Format) {\r | |
48 | Ext.apply(Ext.util.Format, {\r | |
49 | thousandSeparator: ',',\r | |
50 | decimalSeparator: '.',\r | |
51 | currencySign: '£',\r | |
52 | // UK Pound\r | |
53 | dateFormat: 'd/m/Y'\r | |
54 | });\r | |
55 | }\r | |
56 | });\r | |
57 | \r | |
58 | Ext.define("Ext.locale.en_GB.data.validator.Bound", {\r | |
59 | override: "Ext.data.validator.Bound",\r | |
60 | emptyMessage: "Must be present"\r | |
61 | });\r | |
62 | \r | |
63 | Ext.define("Ext.locale.en_GB.data.validator.Email", {\r | |
64 | override: "Ext.data.validator.Email",\r | |
65 | message: "Is not a valid email address"\r | |
66 | });\r | |
67 | \r | |
68 | Ext.define("Ext.locale.en_GB.data.validator.Exclusion", {\r | |
69 | override: "Ext.data.validator.Exclusion",\r | |
70 | message: "Is a value that has been excluded"\r | |
71 | });\r | |
72 | \r | |
73 | Ext.define("Ext.locale.en_GB.data.validator.Format", {\r | |
74 | override: "Ext.data.validator.Format",\r | |
75 | message: "Is in the wrong format"\r | |
76 | });\r | |
77 | \r | |
78 | Ext.define("Ext.locale.en_GB.data.validator.Inclusion", {\r | |
79 | override: "Ext.data.validator.Inclusion",\r | |
80 | message: "Is not in the list of acceptable values"\r | |
81 | });\r | |
82 | \r | |
83 | Ext.define("Ext.locale.en_GB.data.validator.Length", {\r | |
84 | override: "Ext.data.validator.Length",\r | |
85 | minOnlyMessage: "Length must be at least {0}",\r | |
86 | maxOnlyMessage: "Length must be no more than {0}",\r | |
87 | bothMessage: "Length must be between {0} and {1}"\r | |
88 | });\r | |
89 | \r | |
90 | Ext.define("Ext.locale.en_GB.data.validator.Presence", {\r | |
91 | override: "Ext.data.validator.Presence",\r | |
92 | message: "Must be present"\r | |
93 | });\r | |
94 | \r | |
95 | Ext.define("Ext.locale.en_GB.data.validator.Range", {\r | |
96 | override: "Ext.data.validator.Range",\r | |
97 | minOnlyMessage: "Must be must be at least {0}",\r | |
98 | maxOnlyMessage: "Must be no more than than {0}",\r | |
99 | bothMessage: "Must be between {0} and {1}",\r | |
100 | nanMessage: "Must be numeric"\r | |
101 | });\r | |
102 | \r | |
103 | Ext.define("Ext.locale.en_GB.view.View", {\r | |
104 | override: "Ext.view.View",\r | |
105 | emptyText: ""\r | |
106 | });\r | |
107 | \r | |
108 | Ext.define("Ext.locale.en_GB.grid.plugin.DragDrop", {\r | |
109 | override: "Ext.grid.plugin.DragDrop",\r | |
110 | dragText: "{0} selected row{1}"\r | |
111 | });\r | |
112 | \r | |
113 | // changing the msg text below will affect the LoadMask\r | |
114 | Ext.define("Ext.locale.en_GB.view.AbstractView", {\r | |
115 | override: "Ext.view.AbstractView",\r | |
116 | loadingText: "Loading..."\r | |
117 | });\r | |
118 | \r | |
119 | Ext.define("Ext.locale.en_GB.picker.Date", {\r | |
120 | override: "Ext.picker.Date",\r | |
121 | todayText: "Today",\r | |
122 | minText: "This date is before the minimum date",\r | |
123 | maxText: "This date is after the maximum date",\r | |
124 | disabledDaysText: "",\r | |
125 | disabledDatesText: "",\r | |
126 | nextText: 'Next Month (Control+Right)',\r | |
127 | prevText: 'Previous Month (Control+Left)',\r | |
128 | monthYearText: 'Choose a month (Control+Up/Down to move years)',\r | |
129 | todayTip: "{0} (Spacebar)",\r | |
130 | format: "d/m/Y",\r | |
131 | startDay: 0\r | |
132 | });\r | |
133 | \r | |
134 | Ext.define("Ext.locale.en_GB.picker.Month", {\r | |
135 | override: "Ext.picker.Month",\r | |
136 | okText: " OK ",\r | |
137 | cancelText: "Cancel"\r | |
138 | });\r | |
139 | \r | |
140 | Ext.define("Ext.locale.en_GB.toolbar.Paging", {\r | |
141 | override: "Ext.PagingToolbar",\r | |
142 | beforePageText: "Page",\r | |
143 | afterPageText: "of {0}",\r | |
144 | firstText: "First Page",\r | |
145 | prevText: "Previous Page",\r | |
146 | nextText: "Next Page",\r | |
147 | lastText: "Last Page",\r | |
148 | refreshText: "Refresh",\r | |
149 | displayMsg: "Displaying {0} - {1} of {2}",\r | |
150 | emptyMsg: 'No data to display'\r | |
151 | });\r | |
152 | \r | |
153 | Ext.define("Ext.locale.en_GB.form.Basic", {\r | |
154 | override: "Ext.form.Basic",\r | |
155 | waitTitle: "Please Wait..."\r | |
156 | });\r | |
157 | \r | |
158 | Ext.define("Ext.locale.en_GB.form.field.Base", {\r | |
159 | override: "Ext.form.field.Base",\r | |
160 | invalidText: "The value in this field is invalid"\r | |
161 | });\r | |
162 | \r | |
163 | Ext.define("Ext.locale.en_GB.form.field.Text", {\r | |
164 | override: "Ext.form.field.Text",\r | |
165 | minLengthText: "The minimum length for this field is {0}",\r | |
166 | maxLengthText: "The maximum length for this field is {0}",\r | |
167 | blankText: "This field is required",\r | |
168 | regexText: "",\r | |
169 | emptyText: null\r | |
170 | });\r | |
171 | \r | |
172 | Ext.define("Ext.locale.en_GB.form.field.Number", {\r | |
173 | override: "Ext.form.field.Number",\r | |
174 | decimalPrecision: 2,\r | |
175 | minText: "The minimum value for this field is {0}",\r | |
176 | maxText: "The maximum value for this field is {0}",\r | |
177 | nanText: "{0} is not a valid number"\r | |
178 | });\r | |
179 | \r | |
180 | Ext.define("Ext.locale.en_GB.form.field.Date", {\r | |
181 | override: "Ext.form.field.Date",\r | |
182 | disabledDaysText: "Disabled",\r | |
183 | disabledDatesText: "Disabled",\r | |
184 | minText: "The date in this field must be after {0}",\r | |
185 | maxText: "The date in this field must be before {0}",\r | |
186 | invalidText: "{0} is not a valid date - it must be in the format {1}",\r | |
187 | format: "d/m/y",\r | |
188 | altFormats: "d/m/Y|d/m/y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"\r | |
189 | });\r | |
190 | \r | |
191 | Ext.define("Ext.locale.en_GB.form.field.ComboBox", {\r | |
192 | override: "Ext.form.field.ComboBox",\r | |
193 | valueNotFoundText: undefined\r | |
194 | }, function() {\r | |
195 | Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {\r | |
196 | loadingText: "Loading..."\r | |
197 | });\r | |
198 | });\r | |
199 | \r | |
200 | Ext.define("Ext.locale.en_GB.form.field.VTypes", {\r | |
201 | override: "Ext.form.field.VTypes",\r | |
202 | emailText: 'This field should be an e-mail address in the format "user@example.com"',\r | |
203 | urlText: 'This field should be a URL in the format "http:/' + '/www.example.com"',\r | |
204 | alphaText: 'This field should only contain letters and _',\r | |
205 | alphanumText: 'This field should only contain letters, numbers and _'\r | |
206 | });\r | |
207 | \r | |
208 | Ext.define("Ext.locale.en_GB.form.field.HtmlEditor", {\r | |
209 | override: "Ext.form.field.HtmlEditor",\r | |
210 | createLinkText: 'Please enter the URL for the link:'\r | |
211 | }, function() {\r | |
212 | Ext.apply(Ext.form.field.HtmlEditor.prototype, {\r | |
213 | buttonTips: {\r | |
214 | bold: {\r | |
215 | title: 'Bold (Ctrl+B)',\r | |
216 | text: 'Make the selected text bold.',\r | |
217 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
218 | },\r | |
219 | italic: {\r | |
220 | title: 'Italic (Ctrl+I)',\r | |
221 | text: 'Make the selected text italic.',\r | |
222 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
223 | },\r | |
224 | underline: {\r | |
225 | title: 'Underline (Ctrl+U)',\r | |
226 | text: 'Underline the selected text.',\r | |
227 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
228 | },\r | |
229 | increasefontsize: {\r | |
230 | title: 'Grow Text',\r | |
231 | text: 'Increase the font size.',\r | |
232 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
233 | },\r | |
234 | decreasefontsize: {\r | |
235 | title: 'Shrink Text',\r | |
236 | text: 'Decrease the font size.',\r | |
237 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
238 | },\r | |
239 | backcolor: {\r | |
240 | title: 'Text Highlight Colour',\r | |
241 | text: 'Change the background colour of the selected text.',\r | |
242 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
243 | },\r | |
244 | forecolor: {\r | |
245 | title: 'Font Colour',\r | |
246 | text: 'Change the colour of the selected text.',\r | |
247 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
248 | },\r | |
249 | justifyleft: {\r | |
250 | title: 'Align Text Left',\r | |
251 | text: 'Align text to the left.',\r | |
252 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
253 | },\r | |
254 | justifycenter: {\r | |
255 | title: 'Centre Text',\r | |
256 | text: 'Centre text in the editor.',\r | |
257 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
258 | },\r | |
259 | justifyright: {\r | |
260 | title: 'Align Text Right',\r | |
261 | text: 'Align text to the right.',\r | |
262 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
263 | },\r | |
264 | insertunorderedlist: {\r | |
265 | title: 'Bullet List',\r | |
266 | text: 'Start a bulleted list.',\r | |
267 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
268 | },\r | |
269 | insertorderedlist: {\r | |
270 | title: 'Numbered List',\r | |
271 | text: 'Start a numbered list.',\r | |
272 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
273 | },\r | |
274 | createlink: {\r | |
275 | title: 'Hyperlink',\r | |
276 | text: 'Make the selected text a hyperlink.',\r | |
277 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
278 | },\r | |
279 | sourceedit: {\r | |
280 | title: 'Source Edit',\r | |
281 | text: 'Switch to source editing mode.',\r | |
282 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
283 | }\r | |
284 | }\r | |
285 | });\r | |
286 | });\r | |
287 | \r | |
288 | Ext.define("Ext.locale.en_GB.grid.header.Container", {\r | |
289 | override: "Ext.grid.header.Container",\r | |
290 | sortAscText: "Sort Ascending",\r | |
291 | sortDescText: "Sort Descending",\r | |
292 | columnsText: "Columns"\r | |
293 | });\r | |
294 | \r | |
295 | Ext.define("Ext.locale.en_GB.grid.DateColumn", { \r | |
296 | override: "Ext.grid.DateColumn", \r | |
297 | format: 'd/m/Y' \r | |
298 | }); \r | |
299 | \r | |
300 | Ext.define("Ext.locale.en_GB.grid.GroupingFeature", {\r | |
301 | override: "Ext.grid.feature.Grouping",\r | |
302 | emptyGroupText: '(None)',\r | |
303 | groupByText: 'Group by this field',\r | |
304 | showGroupsText: 'Show in Groups'\r | |
305 | });\r | |
306 | \r | |
307 | Ext.define("Ext.locale.en_GB.grid.PropertyColumnModel", {\r | |
308 | override: "Ext.grid.PropertyColumnModel",\r | |
309 | nameText: "Name",\r | |
310 | valueText: "Value",\r | |
311 | dateFormat: "j/m/Y",\r | |
312 | trueText: "true",\r | |
313 | falseText: "false"\r | |
314 | });\r | |
315 | \r | |
316 | Ext.define("Ext.locale.en_GB.form.field.Time", {\r | |
317 | override: "Ext.form.field.Time",\r | |
318 | minText: "The time in this field must be equal to or after {0}",\r | |
319 | maxText: "The time in this field must be equal to or before {0}",\r | |
320 | invalidText: "{0} is not a valid time",\r | |
321 | format: "g:i A",\r | |
322 | 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"\r | |
323 | });\r | |
324 | \r | |
325 | Ext.define("Ext.locale.en_GB.form.field.File", {\r | |
326 | override: "Ext.form.field.File",\r | |
327 | buttonText: "Browse..."\r | |
328 | });\r | |
329 | \r | |
330 | Ext.define("Ext.locale.en_GB.form.CheckboxGroup", {\r | |
331 | override: "Ext.form.CheckboxGroup",\r | |
332 | blankText: "You must select at least one item in this group"\r | |
333 | });\r | |
334 | \r | |
335 | Ext.define("Ext.locale.en_GB.form.RadioGroup", {\r | |
336 | override: "Ext.form.RadioGroup",\r | |
337 | blankText: "You must select one item in this group"\r | |
338 | });\r | |
339 | \r | |
340 | Ext.define("Ext.locale.en_GB.window.MessageBox", {\r | |
341 | override: "Ext.window.MessageBox",\r | |
342 | buttonText: {\r | |
343 | ok: "OK",\r | |
344 | cancel: "Cancel",\r | |
345 | yes: "Yes",\r | |
346 | no: "No"\r | |
347 | } \r | |
348 | });\r | |
349 | \r | |
350 | Ext.define("Ext.locale.en_GB.grid.filters.Filters", {\r | |
351 | override: "Ext.grid.filters.Filters",\r | |
352 | menuFilterText: "Filters"\r | |
353 | });\r | |
354 | \r | |
355 | Ext.define("Ext.locale.en_GB.grid.filters.filter.Boolean", {\r | |
356 | override: "Ext.grid.filters.filter.Boolean",\r | |
357 | yesText: "Yes",\r | |
358 | noText: "No"\r | |
359 | });\r | |
360 | \r | |
361 | Ext.define("Ext.locale.en_GB.grid.filters.filter.Date", {\r | |
362 | override: "Ext.grid.filters.filter.Date",\r | |
363 | fields: {\r | |
364 | lt: {text: 'Before'},\r | |
365 | gt: {text: 'After'},\r | |
366 | eq: {text: 'On'}\r | |
367 | },\r | |
368 | // Defaults to Ext.Date.defaultFormat\r | |
369 | dateFormat: null\r | |
370 | });\r | |
371 | \r | |
372 | Ext.define("Ext.locale.en_GB.grid.filters.filter.List", {\r | |
373 | override: "Ext.grid.filters.filter.List",\r | |
374 | loadingText: "Loading..."\r | |
375 | });\r | |
376 | \r | |
377 | Ext.define("Ext.locale.en_GB.grid.filters.filter.Number", {\r | |
378 | override: "Ext.grid.filters.filter.Number",\r | |
379 | emptyText: "Enter Number..."\r | |
380 | });\r | |
381 | \r | |
382 | Ext.define("Ext.locale.en_GB.grid.filters.filter.String", {\r | |
383 | override: "Ext.grid.filters.filter.String",\r | |
384 | emptyText: "Enter Filter Text..."\r | |
385 | });\r | |
386 | \r | |
387 | // This is needed until we can refactor all of the locales into individual files\r | |
388 | Ext.define("Ext.locale.en_GB.Component", { \r | |
389 | override: "Ext.Component"\r | |
390 | });\r |