ext-lang-en.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. var cm = Ext.ClassManager,
  10. exists = Ext.Function.bind(cm.get, cm);
  11. if (Ext.Updater) {
  12. Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
  13. }
  14. if (exists('Ext.data.Types')) {
  15. Ext.data.Types.stripRe = /[\$,%]/g;
  16. }
  17. Ext.define("Ext.locale.en.view.View", {
  18. override: "Ext.view.View",
  19. emptyText: ""
  20. });
  21. Ext.define("Ext.locale.en.grid.Panel", {
  22. override: "Ext.grid.Panel",
  23. ddText: "{0} selected row{1}"
  24. });
  25. // changing the msg text below will affect the LoadMask
  26. Ext.define("Ext.locale.en.view.AbstractView", {
  27. override: "Ext.view.AbstractView",
  28. msg: "加载中..."
  29. });
  30. if (Ext.Date) {
  31. Ext.Date.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  32. Ext.Date.getShortMonthName = function(month) {
  33. return Ext.Date.monthNames[month].substring(0, 3);
  34. };
  35. Ext.Date.monthNumbers = {
  36. Jan: 0,
  37. Feb: 1,
  38. Mar: 2,
  39. Apr: 3,
  40. May: 4,
  41. Jun: 5,
  42. Jul: 6,
  43. Aug: 7,
  44. Sep: 8,
  45. Oct: 9,
  46. Nov: 10,
  47. Dec: 11
  48. };
  49. Ext.Date.getMonthNumber = function(name) {
  50. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  51. };
  52. Ext.Date.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
  53. Ext.Date.getShortDayName = function(day) {
  54. return Ext.Date.dayNames[day].substring(0, 3);
  55. };
  56. Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
  57. }
  58. if (Ext.MessageBox) {
  59. Ext.MessageBox.buttonText = {
  60. ok: "OK",
  61. cancel: "Cancel",
  62. yes: "Yes",
  63. no: "No"
  64. };
  65. }
  66. if (exists('Ext.util.Format')) {
  67. Ext.apply(Ext.util.Format, {
  68. thousandSeparator: ',',
  69. decimalSeparator: '.',
  70. currencySign: '$',
  71. dateFormat: 'm/d/Y'
  72. });
  73. }
  74. Ext.define("Ext.locale.en.picker.Date", {
  75. override: "Ext.picker.Date",
  76. todayText: "Today",
  77. minText: "This date is before the minimum date",
  78. maxText: "This date is after the maximum date",
  79. disabledDaysText: "",
  80. disabledDatesText: "",
  81. monthNames: Ext.Date.monthNames,
  82. dayNames: Ext.Date.dayNames,
  83. nextText: 'Next Month (Control+Right)',
  84. prevText: 'Previous Month (Control+Left)',
  85. monthYearText: 'Choose a month (Control+Up/Down to move years)',
  86. todayTip: "{0} (Spacebar)",
  87. format: "m/d/y",
  88. startDay: 0
  89. });
  90. Ext.define("Ext.locale.en.picker.Month", {
  91. override: "Ext.picker.Month",
  92. okText: "&#160;OK&#160;",
  93. cancelText: "Cancel"
  94. });
  95. Ext.define("Ext.locale.en.toolbar.Paging", {
  96. override: "Ext.PagingToolbar",
  97. beforePageText: "Page",
  98. afterPageText: "of {0}",
  99. firstText: "First Page",
  100. prevText: "Previous Page",
  101. nextText: "Next Page",
  102. lastText: "Last Page",
  103. refreshText: "Refresh",
  104. displayMsg: "Displaying {0} - {1} of {2}",
  105. emptyMsg: 'No data to display'
  106. });
  107. Ext.define("Ext.locale.en.form.Basic", {
  108. override: "Ext.form.Basic",
  109. waitTitle: "Please Wait..."
  110. });
  111. Ext.define("Ext.locale.en.form.field.Base", {
  112. override: "Ext.form.field.Base",
  113. invalidText: "The value in this field is invalid"
  114. });
  115. Ext.define("Ext.locale.en.form.field.Text", {
  116. override: "Ext.form.field.Text",
  117. minLengthText: "The minimum length for this field is {0}",
  118. maxLengthText: "The maximum length for this field is {0}",
  119. blankText: "This field is required",
  120. regexText: "",
  121. emptyText: null
  122. });
  123. Ext.define("Ext.locale.en.form.field.Number", {
  124. override: "Ext.form.field.Number",
  125. decimalSeparator: ".",
  126. decimalPrecision: 2,
  127. minText: "The minimum value for this field is {0}",
  128. maxText: "The maximum value for this field is {0}",
  129. nanText: "{0} is not a valid number"
  130. });
  131. Ext.define("Ext.locale.en.form.field.Date", {
  132. override: "Ext.form.field.Date",
  133. disabledDaysText: "Disabled",
  134. disabledDatesText: "Disabled",
  135. minText: "The date in this field must be after {0}",
  136. maxText: "The date in this field must be before {0}",
  137. invalidText: "{0} is not a valid date - it must be in the format {1}",
  138. format: "m/d/y",
  139. altFormats: "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
  140. });
  141. Ext.define("Ext.locale.en.form.field.ComboBox", {
  142. override: "Ext.form.field.ComboBox",
  143. valueNotFoundText: undefined
  144. }, function() {
  145. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  146. loadingText: "加载中..."
  147. });
  148. });
  149. if (exists('Ext.form.field.VTypes')) {
  150. Ext.apply(Ext.form.field.VTypes, {
  151. emailText: 'This field should be an e-mail address in the format "user@example.com"',
  152. urlText: 'This field should be a URL in the format "http:/' + '/www.example.com"',
  153. alphaText: 'This field should only contain letters and _',
  154. alphanumText: 'This field should only contain letters, numbers and _'
  155. });
  156. }
  157. Ext.define("Ext.locale.en.form.field.HtmlEditor", {
  158. override: "Ext.form.field.HtmlEditor",
  159. createLinkText: 'Please enter the URL for the link:'
  160. }, function() {
  161. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  162. buttonTips: {
  163. bold: {
  164. title: 'Bold (Ctrl+B)',
  165. text: 'Make the selected text bold.',
  166. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  167. },
  168. italic: {
  169. title: 'Italic (Ctrl+I)',
  170. text: 'Make the selected text italic.',
  171. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  172. },
  173. underline: {
  174. title: 'Underline (Ctrl+U)',
  175. text: 'Underline the selected text.',
  176. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  177. },
  178. increasefontsize: {
  179. title: 'Grow Text',
  180. text: 'Increase the font size.',
  181. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  182. },
  183. decreasefontsize: {
  184. title: 'Shrink Text',
  185. text: 'Decrease the font size.',
  186. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  187. },
  188. backcolor: {
  189. title: 'Text Highlight Color',
  190. text: 'Change the background color of the selected text.',
  191. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  192. },
  193. forecolor: {
  194. title: 'Font Color',
  195. text: 'Change the color of the selected text.',
  196. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  197. },
  198. justifyleft: {
  199. title: 'Align Text Left',
  200. text: 'Align text to the left.',
  201. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  202. },
  203. justifycenter: {
  204. title: 'Center Text',
  205. text: 'Center text in the editor.',
  206. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  207. },
  208. justifyright: {
  209. title: 'Align Text Right',
  210. text: 'Align text to the right.',
  211. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  212. },
  213. insertunorderedlist: {
  214. title: 'Bullet List',
  215. text: 'Start a bulleted list.',
  216. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  217. },
  218. insertorderedlist: {
  219. title: 'Numbered List',
  220. text: 'Start a numbered list.',
  221. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  222. },
  223. createlink: {
  224. title: 'Hyperlink',
  225. text: 'Make the selected text a hyperlink.',
  226. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  227. },
  228. sourceedit: {
  229. title: 'Source Edit',
  230. text: 'Switch to source editing mode.',
  231. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  232. }
  233. }
  234. });
  235. });
  236. Ext.define("Ext.locale.en.grid.header.Container", {
  237. override: "Ext.grid.header.Container",
  238. sortAscText: "Sort Ascending",
  239. sortDescText: "Sort Descending",
  240. columnsText: "Columns"
  241. });
  242. Ext.define("Ext.locale.en.grid.GroupingFeature", {
  243. override: "Ext.grid.GroupingFeature",
  244. emptyGroupText: '(None)',
  245. groupByText: 'Group By This Field',
  246. showGroupsText: 'Show in Groups'
  247. });
  248. Ext.define("Ext.locale.en.grid.PropertyColumnModel", {
  249. override: "Ext.grid.PropertyColumnModel",
  250. nameText: "Name",
  251. valueText: "Value",
  252. dateFormat: "m/j/Y",
  253. trueText: "true",
  254. falseText: "false"
  255. });
  256. Ext.define("Ext.locale.en.grid.BooleanColumn", {
  257. override: "Ext.grid.BooleanColumn",
  258. trueText: "true",
  259. falseText: "false",
  260. undefinedText: '&#160;'
  261. });
  262. Ext.define("Ext.locale.en.grid.NumberColumn", {
  263. override: "Ext.grid.NumberColumn",
  264. format: '0,000.00'
  265. });
  266. Ext.define("Ext.locale.en.grid.DateColumn", {
  267. override: "Ext.grid.DateColumn",
  268. format: 'm/d/Y'
  269. });
  270. Ext.define("Ext.locale.en.form.field.Time", {
  271. override: "Ext.form.field.Time",
  272. minText: "The time in this field must be equal to or after {0}",
  273. maxText: "The time in this field must be equal to or before {0}",
  274. invalidText: "{0} is not a valid time",
  275. format: "g:i A",
  276. 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"
  277. });
  278. Ext.define("Ext.locale.en.form.CheckboxGroup", {
  279. override: "Ext.form.CheckboxGroup",
  280. blankText: "You must select at least one item in this group"
  281. });
  282. Ext.define("Ext.locale.en.form.RadioGroup", {
  283. override: "Ext.form.RadioGroup",
  284. blankText: "You must select one item in this group"
  285. });
  286. });