267c204b240929dea5e9ac17e4283870de2ebb36.svn-base 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /**
  2. * List compiled by mystix on the extjs.com forums. Thank you Mystix!
  3. *
  4. * English Translations
  5. */
  6. Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Loading...</div>';
  7. if (Ext.View) {
  8. Ext.View.prototype.emptyText = "";
  9. }
  10. if (Ext.grid.Grid) {
  11. Ext.grid.Grid.prototype.ddText = "{0} selected row(s)";
  12. }
  13. if (Ext.TabPanelItem) {
  14. Ext.TabPanelItem.prototype.closeText = "Close this tab";
  15. }
  16. if (Ext.form.Field) {
  17. Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
  18. }
  19. if (Ext.LoadMask) {
  20. Ext.LoadMask.prototype.msg = "Loading...";
  21. }
  22. Date.monthNames = ["January", "February", "March", "April", "May", "June",
  23. "July", "August", "September", "October", "November", "December"];
  24. Date.getShortMonthName = function(month) {
  25. return Date.monthNames[month].substring(0, 3);
  26. };
  27. Date.monthNumbers = {
  28. Jan : 0,
  29. Feb : 1,
  30. Mar : 2,
  31. Apr : 3,
  32. May : 4,
  33. Jun : 5,
  34. Jul : 6,
  35. Aug : 7,
  36. Sep : 8,
  37. Oct : 9,
  38. Nov : 10,
  39. Dec : 11
  40. };
  41. Date.getMonthNumber = function(name) {
  42. return Date.monthNumbers[name.substring(0, 1).toUpperCase()
  43. + name.substring(1, 3).toLowerCase()];
  44. };
  45. Date.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
  46. "Friday", "Saturday"];
  47. Date.getShortDayName = function(day) {
  48. return Date.dayNames[day].substring(0, 3);
  49. };
  50. if (Ext.MessageBox) {
  51. Ext.MessageBox.buttonText = {
  52. ok : "OK",
  53. cancel : "Cancel",
  54. yes : "Yes",
  55. no : "No"
  56. };
  57. }
  58. if (Ext.util.Format) {
  59. Ext.util.Format.date = function(v, format) {
  60. if (!v)
  61. return "";
  62. if (!(v instanceof Date))
  63. v = new Date(Date.parse(v));
  64. return v.dateFormat(format || "m/d/Y");
  65. };
  66. }
  67. if (Ext.DatePicker) {
  68. Ext.apply(Ext.DatePicker.prototype, {
  69. todayText : "Today",
  70. minText : "This date is before the minimum date",
  71. maxText : "This date is after the maximum date",
  72. disabledDaysText : "",
  73. disabledDatesText : "",
  74. monthNames : Date.monthNames,
  75. dayNames : Date.dayNames,
  76. nextText : 'Next Month (Control+Right)',
  77. prevText : 'Previous Month (Control+Left)',
  78. monthYearText : 'Choose a month (Control+Up/Down to move years)',
  79. todayTip : "{0} (Spacebar)",
  80. format : "m/d/y",
  81. okText : "&#160;OK&#160;",
  82. cancelText : "Cancel",
  83. startDay : 0
  84. });
  85. }
  86. if (Ext.PagingToolbar) {
  87. Ext.apply(Ext.PagingToolbar.prototype, {
  88. beforePageText : "Page",
  89. afterPageText : "of {0}",
  90. firstText : "First Page",
  91. prevText : "Previous Page",
  92. nextText : "Next Page",
  93. lastText : "Last Page",
  94. refreshText : "Refresh",
  95. displayMsg : "Displaying {0} - {1} of {2}",
  96. emptyMsg : 'No data to display'
  97. });
  98. }
  99. if (Ext.form.TextField) {
  100. Ext.apply(Ext.form.TextField.prototype, {
  101. minLengthText : "The minimum length for this field is {0}",
  102. maxLengthText : "The maximum length for this field is {0}",
  103. blankText : "This field is required",
  104. regexText : "",
  105. emptyText : null
  106. });
  107. }
  108. if (Ext.form.NumberField) {
  109. Ext.apply(Ext.form.NumberField.prototype, {
  110. minText : "The minimum value for this field is {0}",
  111. maxText : "The maximum value for this field is {0}",
  112. nanText : "{0} is not a valid number"
  113. });
  114. }
  115. if (Ext.form.DateField) {
  116. Ext.apply(Ext.form.DateField.prototype, {
  117. disabledDaysText : "Disabled",
  118. disabledDatesText : "Disabled",
  119. minText : "The date in this field must be after {0}",
  120. maxText : "The date in this field must be before {0}",
  121. invalidText : "{0} is not a valid date - it must be in the format {1}",
  122. format : "m/d/y",
  123. altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
  124. });
  125. }
  126. if (Ext.form.ComboBox) {
  127. Ext.apply(Ext.form.ComboBox.prototype, {
  128. loadingText : "Loading...",
  129. valueNotFoundText : undefined
  130. });
  131. }
  132. if (Ext.form.VTypes) {
  133. Ext.apply(Ext.form.VTypes, {
  134. emailText : 'This field should be an e-mail address in the format "user@domain.com"',
  135. urlText : 'This field should be a URL in the format "http:/'
  136. + '/www.domain.com"',
  137. alphaText : 'This field should only contain letters and _',
  138. alphanumText : 'This field should only contain letters, numbers and _'
  139. });
  140. }
  141. if (Ext.form.HtmlEditor) {
  142. Ext.apply(Ext.form.HtmlEditor.prototype, {
  143. createLinkText : 'Please enter the URL for the link:',
  144. buttonTips : {
  145. bold : {
  146. title : 'Bold (Ctrl+B)',
  147. text : 'Make the selected text bold.',
  148. cls : 'x-html-editor-tip'
  149. },
  150. italic : {
  151. title : 'Italic (Ctrl+I)',
  152. text : 'Make the selected text italic.',
  153. cls : 'x-html-editor-tip'
  154. },
  155. underline : {
  156. title : 'Underline (Ctrl+U)',
  157. text : 'Underline the selected text.',
  158. cls : 'x-html-editor-tip'
  159. },
  160. increasefontsize : {
  161. title : 'Grow Text',
  162. text : 'Increase the font size.',
  163. cls : 'x-html-editor-tip'
  164. },
  165. decreasefontsize : {
  166. title : 'Shrink Text',
  167. text : 'Decrease the font size.',
  168. cls : 'x-html-editor-tip'
  169. },
  170. backcolor : {
  171. title : 'Text Highlight Color',
  172. text : 'Change the background color of the selected text.',
  173. cls : 'x-html-editor-tip'
  174. },
  175. forecolor : {
  176. title : 'Font Color',
  177. text : 'Change the color of the selected text.',
  178. cls : 'x-html-editor-tip'
  179. },
  180. justifyleft : {
  181. title : 'Align Text Left',
  182. text : 'Align text to the left.',
  183. cls : 'x-html-editor-tip'
  184. },
  185. justifycenter : {
  186. title : 'Center Text',
  187. text : 'Center text in the editor.',
  188. cls : 'x-html-editor-tip'
  189. },
  190. justifyright : {
  191. title : 'Align Text Right',
  192. text : 'Align text to the right.',
  193. cls : 'x-html-editor-tip'
  194. },
  195. insertunorderedlist : {
  196. title : 'Bullet List',
  197. text : 'Start a bulleted list.',
  198. cls : 'x-html-editor-tip'
  199. },
  200. insertorderedlist : {
  201. title : 'Numbered List',
  202. text : 'Start a numbered list.',
  203. cls : 'x-html-editor-tip'
  204. },
  205. createlink : {
  206. title : 'Hyperlink',
  207. text : 'Make the selected text a hyperlink.',
  208. cls : 'x-html-editor-tip'
  209. },
  210. sourceedit : {
  211. title : 'Source Edit',
  212. text : 'Switch to source editing mode.',
  213. cls : 'x-html-editor-tip'
  214. }
  215. }
  216. });
  217. }
  218. if (Ext.grid.GridView) {
  219. Ext.apply(Ext.grid.GridView.prototype, {
  220. sortAscText : "Sort Ascending",
  221. sortDescText : "Sort Descending",
  222. lockText : "Lock Column",
  223. unlockText : "Unlock Column",
  224. columnsText : "Columns"
  225. });
  226. }
  227. if (Ext.grid.GroupingView) {
  228. Ext.apply(Ext.grid.GroupingView.prototype, {
  229. emptyGroupText : '(None)',
  230. groupByText : 'Group By This Field',
  231. showGroupsText : 'Show in Groups'
  232. });
  233. }
  234. if (Ext.grid.PropertyColumnModel) {
  235. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  236. nameText : "Name",
  237. valueText : "Value",
  238. dateFormat : "m/j/Y"
  239. });
  240. }
  241. if (Ext.layout.BorderLayout.SplitRegion) {
  242. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  243. splitTip : "Drag to resize.",
  244. collapsibleSplitTip : "Drag to resize. Double click to hide."
  245. });
  246. }