ext-locale-en.js 13 KB

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