3 <title>The source code</title>
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 <body onload="prettyPrint();">
8 <pre class="prettyprint lang-js">/*!
10 * Copyright(c) 2006-2009 Ext JS, LLC
12 * http://www.extjs.com/license
14 <div id="prop-Ext.Direct.Transaction-indicatorText"></div>/**
15 * List compiled by mystix on the extjs.com forums.
18 * English (UK) Translations
19 * updated to 2.2 by Condor (8 Aug 2008)
22 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
25 Ext.DataView.prototype.emptyText = "";
28 if(Ext.grid.GridPanel){
29 Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}";
33 Ext.LoadMask.prototype.msg = "Loading...";
51 Date.getShortMonthName = function(month) {
52 return Date.monthNames[month].substring(0, 3);
70 Date.getMonthNumber = function(name) {
71 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
84 Date.getShortDayName = function(day) {
85 return Date.dayNames[day].substring(0, 3);
88 Date.parseCodes.S.s = "(?:st|nd|rd|th)";
91 Ext.MessageBox.buttonText = {
100 Ext.util.Format.date = function(v, format){
102 if(!(v instanceof Date)) v = new Date(Date.parse(v));
103 return v.dateFormat(format || "d/m/Y");
108 Ext.apply(Ext.DatePicker.prototype, {
110 minText : "This date is before the minimum date",
111 maxText : "This date is after the maximum date",
112 disabledDaysText : "",
113 disabledDatesText : "",
114 monthNames : Date.monthNames,
115 dayNames : Date.dayNames,
116 nextText : 'Next Month (Control+Right)',
117 prevText : 'Previous Month (Control+Left)',
118 monthYearText : 'Choose a month (Control+Up/Down to move years)',
119 todayTip : "{0} (Spacebar)",
121 okText : " OK ",
122 cancelText : "Cancel",
127 if(Ext.PagingToolbar){
128 Ext.apply(Ext.PagingToolbar.prototype, {
129 beforePageText : "Page",
130 afterPageText : "of {0}",
131 firstText : "First Page",
132 prevText : "Previous Page",
133 nextText : "Next Page",
134 lastText : "Last Page",
135 refreshText : "Refresh",
136 displayMsg : "Displaying {0} - {1} of {2}",
137 emptyMsg : 'No data to display'
141 if(Ext.form.BasicForm){
142 Ext.form.BasicForm.prototype.waitTitle = "Please Wait..."
146 Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
149 if(Ext.form.TextField){
150 Ext.apply(Ext.form.TextField.prototype, {
151 minLengthText : "The minimum length for this field is {0}",
152 maxLengthText : "The maximum length for this field is {0}",
153 blankText : "This field is required",
159 if(Ext.form.NumberField){
160 Ext.apply(Ext.form.NumberField.prototype, {
161 decimalSeparator : ".",
162 decimalPrecision : 2,
163 minText : "The minimum value for this field is {0}",
164 maxText : "The maximum value for this field is {0}",
165 nanText : "{0} is not a valid number"
169 if(Ext.form.DateField){
170 Ext.apply(Ext.form.DateField.prototype, {
171 disabledDaysText : "Disabled",
172 disabledDatesText : "Disabled",
173 minText : "The date in this field must be after {0}",
174 maxText : "The date in this field must be before {0}",
175 invalidText : "{0} is not a valid date - it must be in the format {1}",
177 altFormats : "d/m/Y|d/m/y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
181 if(Ext.form.ComboBox){
182 Ext.apply(Ext.form.ComboBox.prototype, {
183 loadingText : "Loading...",
184 valueNotFoundText : undefined
189 Ext.apply(Ext.form.VTypes, {
190 emailText : 'This field should be an e-mail address in the format "user@example.com"',
191 urlText : 'This field should be a URL in the format "http:/'+'/www.example.com"',
192 alphaText : 'This field should only contain letters and _',
193 alphanumText : 'This field should only contain letters, numbers and _'
197 if(Ext.form.HtmlEditor){
198 Ext.apply(Ext.form.HtmlEditor.prototype, {
199 createLinkText : 'Please enter the URL for the link:',
202 title: 'Bold (Ctrl+B)',
203 text: 'Make the selected text bold.',
204 cls: 'x-html-editor-tip'
207 title: 'Italic (Ctrl+I)',
208 text: 'Make the selected text italic.',
209 cls: 'x-html-editor-tip'
212 title: 'Underline (Ctrl+U)',
213 text: 'Underline the selected text.',
214 cls: 'x-html-editor-tip'
218 text: 'Increase the font size.',
219 cls: 'x-html-editor-tip'
222 title: 'Shrink Text',
223 text: 'Decrease the font size.',
224 cls: 'x-html-editor-tip'
227 title: 'Text Highlight Color',
228 text: 'Change the background color of the selected text.',
229 cls: 'x-html-editor-tip'
233 text: 'Change the color of the selected text.',
234 cls: 'x-html-editor-tip'
237 title: 'Align Text Left',
238 text: 'Align text to the left.',
239 cls: 'x-html-editor-tip'
242 title: 'Center Text',
243 text: 'Center text in the editor.',
244 cls: 'x-html-editor-tip'
247 title: 'Align Text Right',
248 text: 'Align text to the right.',
249 cls: 'x-html-editor-tip'
251 insertunorderedlist : {
252 title: 'Bullet List',
253 text: 'Start a bulleted list.',
254 cls: 'x-html-editor-tip'
256 insertorderedlist : {
257 title: 'Numbered List',
258 text: 'Start a numbered list.',
259 cls: 'x-html-editor-tip'
263 text: 'Make the selected text a hyperlink.',
264 cls: 'x-html-editor-tip'
267 title: 'Source Edit',
268 text: 'Switch to source editing mode.',
269 cls: 'x-html-editor-tip'
275 if(Ext.grid.GridView){
276 Ext.apply(Ext.grid.GridView.prototype, {
277 sortAscText : "Sort Ascending",
278 sortDescText : "Sort Descending",
279 columnsText : "Columns"
283 if(Ext.grid.GroupingView){
284 Ext.apply(Ext.grid.GroupingView.prototype, {
285 emptyGroupText : '(None)',
286 groupByText : 'Group By This Field',
287 showGroupsText : 'Show in Groups'
291 if(Ext.grid.PropertyColumnModel){
292 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
299 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
300 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
301 splitTip : "Drag to resize.",
302 collapsibleSplitTip : "Drag to resize. Double click to hide."
306 if(Ext.form.TimeField){
307 Ext.apply(Ext.form.TimeField.prototype, {
308 minText : "The time in this field must be equal to or after {0}",
309 maxText : "The time in this field must be equal to or before {0}",
310 invalidText : "{0} is not a valid time",
312 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"
316 if(Ext.form.CheckboxGroup){
317 Ext.apply(Ext.form.CheckboxGroup.prototype, {
318 blankText : "You must select at least one item in this group"
322 if(Ext.form.RadioGroup){
323 Ext.apply(Ext.form.RadioGroup.prototype, {
324 blankText : "You must select one item in this group"