/hippo/src/main/webapp/ext/src/locale/ext-lang-en.js

http://hdbc.googlecode.com/ · JavaScript · 335 lines · 290 code · 32 blank · 13 comment · 29 complexity · 98cbb65631350f5ccc18bf8db7902c51 MD5 · raw file

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