PageRenderTime 45ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/micrite-common/src/main/scripts/js-lib/ext-ux-js/locale/micrite-base-lang-en.js

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