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.

173 lines
4.5 KiB

  1. /**
  2. * List compiled by mystix on the extjs.com forums.
  3. * Thank you Mystix!
  4. *
  5. * English (UK) 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.form.Field){
  18. Ext.form.Field.prototype.invalidText = "The value in this field is invalid";
  19. }
  20. if(Ext.LoadMask){
  21. Ext.LoadMask.prototype.msg = "Loading...";
  22. }
  23. Date.monthNames = [
  24. "January",
  25. "February",
  26. "March",
  27. "April",
  28. "May",
  29. "June",
  30. "July",
  31. "August",
  32. "September",
  33. "October",
  34. "November",
  35. "December"
  36. ];
  37. Date.dayNames = [
  38. "Sunday",
  39. "Monday",
  40. "Tuesday",
  41. "Wednesday",
  42. "Thursday",
  43. "Friday",
  44. "Saturday"
  45. ];
  46. if(Ext.MessageBox){
  47. Ext.MessageBox.buttonText = {
  48. ok : "OK",
  49. cancel : "Cancel",
  50. yes : "Yes",
  51. no : "No"
  52. };
  53. }
  54. if(Ext.util.Format){
  55. Ext.util.Format.date = function(v, format){
  56. if(!v) return "";
  57. if(!(v instanceof Date)) v = new Date(Date.parse(v));
  58. return v.dateFormat(format || "d/m/Y");
  59. };
  60. }
  61. if(Ext.DatePicker){
  62. Ext.apply(Ext.DatePicker.prototype, {
  63. todayText : "Today",
  64. minText : "This date is before the minimum date",
  65. maxText : "This date is after the maximum date",
  66. disabledDaysText : "",
  67. disabledDatesText : "",
  68. monthNames : Date.monthNames,
  69. dayNames : Date.dayNames,
  70. nextText : 'Next Month (Control+Right)',
  71. prevText : 'Previous Month (Control+Left)',
  72. monthYearText : 'Choose a month (Control+Up/Down to move years)',
  73. todayTip : "{0} (Spacebar)",
  74. format : "d/m/y"
  75. });
  76. }
  77. if(Ext.PagingToolbar){
  78. Ext.apply(Ext.PagingToolbar.prototype, {
  79. beforePageText : "Page",
  80. afterPageText : "of {0}",
  81. firstText : "First Page",
  82. prevText : "Previous Page",
  83. nextText : "Next Page",
  84. lastText : "Last Page",
  85. refreshText : "Refresh",
  86. displayMsg : "Displaying {0} - {1} of {2}",
  87. emptyMsg : 'No data to display'
  88. });
  89. }
  90. if(Ext.form.TextField){
  91. Ext.apply(Ext.form.TextField.prototype, {
  92. minLengthText : "The minimum length for this field is {0}",
  93. maxLengthText : "The maximum length for this field is {0}",
  94. blankText : "This field is required",
  95. regexText : "",
  96. emptyText : null
  97. });
  98. }
  99. if(Ext.form.NumberField){
  100. Ext.apply(Ext.form.NumberField.prototype, {
  101. minText : "The minimum value for this field is {0}",
  102. maxText : "The maximum value for this field is {0}",
  103. nanText : "{0} is not a valid number"
  104. });
  105. }
  106. if(Ext.form.DateField){
  107. Ext.apply(Ext.form.DateField.prototype, {
  108. disabledDaysText : "Disabled",
  109. disabledDatesText : "Disabled",
  110. minText : "The date in this field must be after {0}",
  111. maxText : "The date in this field must be before {0}",
  112. invalidText : "{0} is not a valid date - it must be in the format {1}",
  113. format : "d/m/y",
  114. altFormats : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
  115. });
  116. }
  117. if(Ext.form.ComboBox){
  118. Ext.apply(Ext.form.ComboBox.prototype, {
  119. loadingText : "Loading...",
  120. valueNotFoundText : undefined
  121. });
  122. }
  123. if(Ext.form.VTypes){
  124. Ext.apply(Ext.form.VTypes, {
  125. emailText : 'This field should be an e-mail address in the format "user@domain.com"',
  126. urlText : 'This field should be a URL in the format "http:/'+'/www.domain.com"',
  127. alphaText : 'This field should only contain letters and _',
  128. alphanumText : 'This field should only contain letters, numbers and _'
  129. });
  130. }
  131. if(Ext.grid.GridView){
  132. Ext.apply(Ext.grid.GridView.prototype, {
  133. sortAscText : "Sort Ascending",
  134. sortDescText : "Sort Descending",
  135. lockText : "Lock Column",
  136. unlockText : "Unlock Column",
  137. columnsText : "Columns"
  138. });
  139. }
  140. if(Ext.grid.PropertyColumnModel){
  141. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  142. nameText : "Name",
  143. valueText : "Value",
  144. dateFormat : "j/m/Y"
  145. });
  146. }
  147. if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  148. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  149. splitTip : "Drag to resize.",
  150. collapsibleSplitTip : "Drag to resize. Double click to hide."
  151. });
  152. }