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.

172 lines
4.6 KiB

  1. /*
  2. * Traditional Chinese translation
  3. * By hata1234
  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. if(Ext.LoadMask){
  20. Ext.LoadMask.prototype.msg = "讀取中...";
  21. }
  22. Date.monthNames = [
  23. "一月",
  24. "二月",
  25. "三月",
  26. "四月",
  27. "五月",
  28. "六月",
  29. "七月",
  30. "八月",
  31. "九月",
  32. "十月",
  33. "十一月",
  34. "十二月"
  35. ];
  36. Date.dayNames = [
  37. "日",
  38. "一",
  39. "二",
  40. "三",
  41. "四",
  42. "五",
  43. "六"
  44. ];
  45. if(Ext.MessageBox){
  46. Ext.MessageBox.buttonText = {
  47. ok : "確定",
  48. cancel : "取消",
  49. yes : "是",
  50. no : "否"
  51. };
  52. }
  53. if(Ext.util.Format){
  54. Ext.util.Format.date = function(v, format){
  55. if(!v) return "";
  56. if(!(v instanceof Date)) v = new Date(Date.parse(v));
  57. return v.dateFormat(format || "Y/m/d");
  58. };
  59. }
  60. if(Ext.DatePicker){
  61. Ext.apply(Ext.DatePicker.prototype, {
  62. todayText : "今天",
  63. minText : "日期必須大於最小容許日期",
  64. maxText : "日期必須小於最大容許日期",
  65. disabledDaysText : "",
  66. disabledDatesText : "",
  67. monthNames : Date.monthNames,
  68. dayNames : Date.dayNames,
  69. nextText : "下個月 (Ctrl+右方向鍵)",
  70. prevText : "上個月 (Ctrl+左方向鍵)",
  71. monthYearText : "選擇月份 (Ctrl+上/下方向鍵選擇年份)",
  72. todayTip : "{0} (空白鍵)",
  73. format : "y/m/d",
  74. okText : "确定",
  75. cancelText : "取消"
  76. });
  77. }
  78. if(Ext.PagingToolbar){
  79. Ext.apply(Ext.PagingToolbar.prototype, {
  80. beforePageText : "第",
  81. afterPageText : "頁,共{0}頁",
  82. firstText : "第一頁",
  83. prevText : "上一頁",
  84. nextText : "下一頁",
  85. lastText : "最後頁",
  86. refreshText : "重新整理",
  87. displayMsg : "顯示{0} - {1}頁,共{2}頁",
  88. emptyMsg : '沒有任何資料'
  89. });
  90. }
  91. if(Ext.form.TextField){
  92. Ext.apply(Ext.form.TextField.prototype, {
  93. minLengthText : "此欄位最少要輸入 {0} 個字",
  94. maxLengthText : "此欄位最多輸入 {0} 個字",
  95. blankText : "此欄位為必填",
  96. regexText : "",
  97. emptyText : null
  98. });
  99. }
  100. if(Ext.form.NumberField){
  101. Ext.apply(Ext.form.NumberField.prototype, {
  102. minText : "此欄位之數值必須大於 {0}",
  103. maxText : "此欄位之數值必須小於 {0}",
  104. nanText : "{0} 不是合法的數字"
  105. });
  106. }
  107. if(Ext.form.DateField){
  108. Ext.apply(Ext.form.DateField.prototype, {
  109. disabledDaysText : "無法使用",
  110. disabledDatesText : "無法使用",
  111. minText : "此欄位之日期必須在 {0} 之後",
  112. maxText : "此欄位之日期必須在 {0} 之前",
  113. invalidText : "{0} 不是正確的日期格式 - 必須像是 「 {1} 」 這樣的格式",
  114. format : "Y/m/d"
  115. });
  116. }
  117. if(Ext.form.ComboBox){
  118. Ext.apply(Ext.form.ComboBox.prototype, {
  119. loadingText : "讀取中 ...",
  120. valueNotFoundText : undefined
  121. });
  122. }
  123. if(Ext.form.VTypes){
  124. Ext.apply(Ext.form.VTypes, {
  125. emailText : '此欄位必須輸入像 "user@domain.com" 之E-Mail格式',
  126. urlText : '此欄位必須輸入像 "http:/'+'/www.domain.com" 之網址格式',
  127. alphaText : '此欄位僅能輸入半形英文字母及底線( _ )符號',
  128. alphanumText : '此欄位僅能輸入半形英文字母、數字及底線( _ )符號'
  129. });
  130. }
  131. if(Ext.grid.GridView){
  132. Ext.apply(Ext.grid.GridView.prototype, {
  133. sortAscText : "正向排序",
  134. sortDescText : "反向排序",
  135. lockText : "鎖定欄位",
  136. unlockText : "解開欄位鎖定",
  137. columnsText : "欄位"
  138. });
  139. }
  140. if(Ext.grid.PropertyColumnModel){
  141. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  142. nameText : "名稱",
  143. valueText : "數值",
  144. dateFormat : "Y/m/d"
  145. });
  146. }
  147. if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  148. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  149. splitTip : "拖曳縮放大小.",
  150. collapsibleSplitTip : "拖曳縮放大小. 滑鼠雙擊隱藏."
  151. });
  152. }