ext-locale-zh_TW.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /**
  2. * Traditional Chinese translation
  3. * By hata1234
  4. * 09 April 2007
  5. */
  6. Ext.onReady(function() {
  7. var parseCodes;
  8. if (Ext.Date) {
  9. Ext.Date.monthNames = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"];
  10. Ext.Date.dayNames = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
  11. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
  12. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
  13. parseCodes = {
  14. g: 1,
  15. c: "if (/(上午)/i.test(results[{0}])) {\n"
  16. + "if (!h || h == 12) { h = 0; }\n"
  17. + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  18. s: "(上午|下午)",
  19. calcAtEnd: true
  20. };
  21. Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = parseCodes;
  22. }
  23. if (Ext.util && Ext.util.Format) {
  24. Ext.apply(Ext.util.Format, {
  25. thousandSeparator: ',',
  26. decimalSeparator: '.',
  27. currencySign: '\u00a5',
  28. // Chinese Yuan
  29. dateFormat: 'Y/m/d'
  30. });
  31. }
  32. });
  33. Ext.define("Ext.locale.zh_TW.view.View", {
  34. override: "Ext.view.View",
  35. emptyText: ""
  36. });
  37. Ext.define("Ext.locale.zh_TW.grid.plugin.DragDrop", {
  38. override: "Ext.grid.plugin.DragDrop",
  39. dragText: "選擇了 {0} 行"
  40. });
  41. Ext.define("Ext.locale.zh_TW.tab.Tab", {
  42. override: "Ext.tab.Tab",
  43. closeText: "關閉此標籤"
  44. });
  45. Ext.define("Ext.locale.zh_TW.form.field.Base", {
  46. override: "Ext.form.field.Base",
  47. invalidText: "數值不符合欄位規定"
  48. });
  49. // changing the msg text below will affect the LoadMask
  50. Ext.define("Ext.locale.zh_TW.view.AbstractView", {
  51. override: "Ext.view.AbstractView",
  52. loadingText: "讀取中..."
  53. });
  54. Ext.define("Ext.locale.zh_TW.picker.Date", {
  55. override: "Ext.picker.Date",
  56. todayText: "今天",
  57. minText: "日期必須大於最小容許日期",
  58. maxText: "日期必須小於最大容許日期",
  59. disabledDaysText: "",
  60. disabledDatesText: "",
  61. nextText: "下個月 (Ctrl+右方向鍵)",
  62. prevText: "上個月 (Ctrl+左方向鍵)",
  63. monthYearText: "選擇月份 (Ctrl+上/下方向鍵選擇年份)",
  64. format: "y/m/d",
  65. ariaTitle: '{0}',
  66. ariaTitleDateFormat: 'Y\u5e74m\u6708d\u65e5',
  67. longDayFormat: 'Y\u5e74m\u6708d\u65e5',
  68. monthYearFormat: 'Y\u5e74m\u6708',
  69. getDayInitial: function (value) {
  70. // Grab the last character
  71. return value.substr(value.length - 1);
  72. }
  73. });
  74. Ext.define("Ext.locale.zh_TW.picker.Month", {
  75. override: "Ext.picker.Month",
  76. okText: "确定",
  77. cancelText: "取消"
  78. });
  79. Ext.define("Ext.locale.zh_TW.toolbar.Paging", {
  80. override: "Ext.PagingToolbar",
  81. beforePageText: "第",
  82. afterPageText: "頁,共{0}頁",
  83. firstText: "第一頁",
  84. prevText: "上一頁",
  85. nextText: "下一頁",
  86. lastText: "最後頁",
  87. refreshText: "重新整理",
  88. displayMsg: "顯示{0} - {1}筆,共{2}筆",
  89. emptyMsg: '沒有任何資料'
  90. });
  91. Ext.define("Ext.locale.zh_TW.form.field.Text", {
  92. override: "Ext.form.field.Text",
  93. minLengthText: "此欄位最少要輸入 {0} 個字",
  94. maxLengthText: "此欄位最多輸入 {0} 個字",
  95. blankText: "此欄位為必填",
  96. regexText: "",
  97. emptyText: null
  98. });
  99. Ext.define("Ext.locale.zh_TW.form.field.Number", {
  100. override: "Ext.form.field.Number",
  101. minText: "此欄位之數值必須大於 {0}",
  102. maxText: "此欄位之數值必須小於 {0}",
  103. nanText: "{0} 不是合法的數字"
  104. });
  105. Ext.define("Ext.locale.zh_TW.form.field.Date", {
  106. override: "Ext.form.field.Date",
  107. disabledDaysText: "無法使用",
  108. disabledDatesText: "無法使用",
  109. minText: "此欄位之日期必須在 {0} 之後",
  110. maxText: "此欄位之日期必須在 {0} 之前",
  111. invalidText: "{0} 不是正確的日期格式 - 必須像是 「 {1} 」 這樣的格式",
  112. format: "Y/m/d"
  113. });
  114. Ext.define("Ext.locale.zh_TW.form.field.ComboBox", {
  115. override: "Ext.form.field.ComboBox",
  116. valueNotFoundText: undefined
  117. }, function() {
  118. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  119. loadingText: "讀取中 ..."
  120. });
  121. });
  122. Ext.define("Ext.locale.zh_TW.form.field.VTypes", {
  123. override: "Ext.form.field.VTypes",
  124. emailText: '此欄位必須輸入像 "user@example.com" 之E-Mail格式',
  125. urlText: '此欄位必須輸入像 "http:/' + '/www.example.com" 之網址格式',
  126. alphaText: '此欄位僅能輸入半形英文字母及底線( _ )符號',
  127. alphanumText: '此欄位僅能輸入半形英文字母、數字及底線( _ )符號'
  128. });
  129. Ext.define("Ext.locale.zh_TW.grid.header.Container", {
  130. override: "Ext.grid.header.Container",
  131. sortAscText: "正向排序",
  132. sortDescText: "反向排序",
  133. lockText: "鎖定欄位",
  134. unlockText: "解開欄位鎖定",
  135. columnsText: "欄位"
  136. });
  137. Ext.define("Ext.locale.zh_TW.grid.PropertyColumnModel", {
  138. override: "Ext.grid.PropertyColumnModel",
  139. nameText: "名稱",
  140. valueText: "數值",
  141. dateFormat: "Y/m/d"
  142. });
  143. Ext.define("Ext.locale.zh_TW.window.MessageBox", {
  144. override: "Ext.window.MessageBox",
  145. buttonText: {
  146. ok: "確定",
  147. cancel: "取消",
  148. yes: "是",
  149. no: "否"
  150. }
  151. });
  152. // This is needed until we can refactor all of the locales into individual files
  153. Ext.define("Ext.locale.zh_TW.Component", {
  154. override: "Ext.Component"
  155. });