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.

168 lines
4.3 KiB

  1. /*
  2. * Simplified Chinese translation
  3. * By DavidHu
  4. * 09 April 2007
  5. */
  6. Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
  7. if(Ext.View){
  8. Ext.View.prototype.emptyText = "";
  9. }
  10. if(Ext.grid.GridPanel){
  11. Ext.grid.GridPanel.prototype.ddText = "{0} 选择行";
  12. }
  13. if(Ext.TabPanelItem){
  14. Ext.TabPanelItem.prototype.closeText = "关闭";
  15. }
  16. if(Ext.form.Field){
  17. Ext.form.Field.prototype.invalidText = "输入值非法";
  18. }
  19. Date.monthNames = [
  20. "一月",
  21. "二月",
  22. "三月",
  23. "四月",
  24. "五月",
  25. "六月",
  26. "七月",
  27. "八月",
  28. "九月",
  29. "十月",
  30. "十一月",
  31. "十二月"
  32. ];
  33. Date.dayNames = [
  34. "日",
  35. "一",
  36. "二",
  37. "三",
  38. "四",
  39. "五",
  40. "六"
  41. ];
  42. if(Ext.MessageBox){
  43. Ext.MessageBox.buttonText = {
  44. ok : "确定",
  45. cancel : "取消",
  46. yes : "是",
  47. no : "否"
  48. };
  49. }
  50. if(Ext.util.Format){
  51. Ext.util.Format.date = function(v, format){
  52. if(!v) return "";
  53. if(!(v instanceof Date)) v = new Date(Date.parse(v));
  54. return v.dateFormat(format || "y年m月d日");
  55. };
  56. }
  57. if(Ext.DatePicker){
  58. Ext.apply(Ext.DatePicker.prototype, {
  59. todayText : "今天",
  60. minText : "日期在最小日期之前",
  61. maxText : "日期在最大日期之后",
  62. disabledDaysText : "",
  63. disabledDatesText : "",
  64. monthNames : Date.monthNames,
  65. dayNames : Date.dayNames,
  66. nextText : '下月 (Control+Right)',
  67. prevText : '上月 (Control+Left)',
  68. monthYearText : '选择一个月 (Control+Up/Down 来改变年)',
  69. todayTip : "{0} (空格键选择)",
  70. format : "y年m月d日",
  71. okText : "确定",
  72. cancelText : "取消"
  73. });
  74. }
  75. if(Ext.PagingToolbar){
  76. Ext.apply(Ext.PagingToolbar.prototype, {
  77. beforePageText : "页",
  78. afterPageText : "页共 {0} 页",
  79. firstText : "第一页",
  80. prevText : "前一页",
  81. nextText : "下一页",
  82. lastText : "最后页",
  83. refreshText : "刷新",
  84. displayMsg : "显示 {0} - {1},共 {2} 条",
  85. emptyMsg : '没有数据需要显示'
  86. });
  87. }
  88. if(Ext.form.TextField){
  89. Ext.apply(Ext.form.TextField.prototype, {
  90. minLengthText : "该输入项的最小长度是 {0}",
  91. maxLengthText : "该输入项的最大长度是 {0}",
  92. blankText : "该输入项为必输项",
  93. regexText : "",
  94. emptyText : null
  95. });
  96. }
  97. if(Ext.form.NumberField){
  98. Ext.apply(Ext.form.NumberField.prototype, {
  99. minText : "该输入项的最小值是 {0}",
  100. maxText : "该输入项的最大值是 {0}",
  101. nanText : "{0} 不是有效数值"
  102. });
  103. }
  104. if(Ext.form.DateField){
  105. Ext.apply(Ext.form.DateField.prototype, {
  106. disabledDaysText : "禁用",
  107. disabledDatesText : "禁用",
  108. minText : "该输入项的日期必须在 {0} 之后",
  109. maxText : "该输入项的日期必须在 {0} 之前",
  110. invalidText : "{0} 是无效的日期 - 必须符合格式: {1}",
  111. format : "y年m月d日"
  112. });
  113. }
  114. if(Ext.form.ComboBox){
  115. Ext.apply(Ext.form.ComboBox.prototype, {
  116. loadingText : "加载...",
  117. valueNotFoundText : undefined
  118. });
  119. }
  120. if(Ext.form.VTypes){
  121. Ext.apply(Ext.form.VTypes, {
  122. emailText : '该输入项必须是电子邮件地址,格式如: "user@domain.com"',
  123. urlText : '该输入项必须是URL地址,格式如: "http:/'+'/www.domain.com"',
  124. alphaText : '该输入项只能包含字符和_',
  125. alphanumText : '该输入项只能包含字符,数字和_'
  126. });
  127. }
  128. if(Ext.grid.GridView){
  129. Ext.apply(Ext.grid.GridView.prototype, {
  130. sortAscText : "正序",
  131. sortDescText : "逆序",
  132. lockText : "锁列",
  133. unlockText : "解锁列",
  134. columnsText : "列"
  135. });
  136. }
  137. if(Ext.grid.PropertyColumnModel){
  138. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  139. nameText : "名称",
  140. valueText : "值",
  141. dateFormat : "y年m月d日"
  142. });
  143. }
  144. if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  145. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  146. splitTip : "拖动来改变尺寸.",
  147. collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."
  148. });
  149. }