Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

292 lines
7.3 KiB

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