ext-lang-en_GB.js 10 KB

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