grid.locale-tw.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. ;(function($){
  2. /**
  3. * jqGrid Chinese (Taiwan) Translation for v4.2
  4. * linquize
  5. * https://github.com/linquize/jqGrid
  6. * Dual licensed under the MIT and GPL licenses:
  7. * http://www.opensource.org/licenses/mit-license.php
  8. * http://www.gnu.org/licenses/gpl.html
  9. *
  10. **/
  11. $.jgrid = $.jgrid || {};
  12. $.extend($.jgrid,{
  13. defaults : {
  14. recordtext: "{0} - {1} 共 {2} 條",
  15. emptyrecords: "沒有記錄",
  16. loadtext: "載入中...",
  17. pgtext : " {0} 共 {1} 頁",
  18. pgfirst : "First Page",
  19. pglast : "Last Page",
  20. pgnext : "Next Page",
  21. pgprev : "Previous Page",
  22. pgrecs : "Records per Page",
  23. showhide: "Toggle Expand Collapse Grid"
  24. },
  25. search : {
  26. caption: "搜尋...",
  27. Find: "搜尋",
  28. Reset: "重設",
  29. odata: [{ oper:'eq', text:"等於 "},{ oper:'ne', text:"不等於 "},{ oper:'lt', text:"小於 "},{ oper:'le', text:"小於等於 "},{ oper:'gt', text:"大於 "},{ oper:'ge', text:"大於等於 "},{ oper:'bw', text:"開始於 "},{ oper:'bn', text:"不開始於 "},{ oper:'in', text:"在其中 "},{ oper:'ni', text:"不在其中 "},{ oper:'ew', text:"結束於 "},{ oper:'en', text:"不結束於 "},{ oper:'cn', text:"包含 "},{ oper:'nc', text:"不包含 "},{ oper:'nu', text:'is null'},{ oper:'nn', text:'is not null'}],
  30. groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ],
  31. operandTitle : "Click to select search operation.",
  32. resetTitle : "Reset Search Value"
  33. },
  34. edit : {
  35. addCaption: "新增記錄",
  36. editCaption: "編輯記錄",
  37. bSubmit: "提交",
  38. bCancel: "取消",
  39. bClose: "關閉",
  40. saveData: "資料已改變,是否儲存?",
  41. bYes : "是",
  42. bNo : "否",
  43. bExit : "取消",
  44. msg: {
  45. required:"此欄必要",
  46. number:"請輸入有效的數字",
  47. minValue:"值必須大於等於 ",
  48. maxValue:"值必須小於等於 ",
  49. email: "不是有效的e-mail地址",
  50. integer: "請輸入有效整数",
  51. date: "請輸入有效時間",
  52. url: "網址無效。前綴必須為 ('http://' 或 'https://')",
  53. nodefined : " 未定義!",
  54. novalue : " 需要傳回值!",
  55. customarray : "自訂函數應傳回陣列!",
  56. customfcheck : "自訂檢查應有自訂函數!"
  57. }
  58. },
  59. view : {
  60. caption: "查看記錄",
  61. bClose: "關閉"
  62. },
  63. del : {
  64. caption: "刪除",
  65. msg: "刪除已選記錄?",
  66. bSubmit: "刪除",
  67. bCancel: "取消"
  68. },
  69. nav : {
  70. edittext: "",
  71. edittitle: "編輯已選列",
  72. addtext:"",
  73. addtitle: "新增列",
  74. deltext: "",
  75. deltitle: "刪除已選列",
  76. searchtext: "",
  77. searchtitle: "搜尋記錄",
  78. refreshtext: "",
  79. refreshtitle: "重新整理表格",
  80. alertcap: "警告",
  81. alerttext: "請選擇列",
  82. viewtext: "",
  83. viewtitle: "檢視已選列"
  84. },
  85. col : {
  86. caption: "選擇欄",
  87. bSubmit: "確定",
  88. bCancel: "取消"
  89. },
  90. errors : {
  91. errcap : "錯誤",
  92. nourl : "未設定URL",
  93. norecords: "無需要處理的記錄",
  94. model : "colNames 和 colModel 長度不同!"
  95. },
  96. formatter : {
  97. integer : {thousandsSeparator: " ", defaultValue: '0'},
  98. number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
  99. currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  100. date : {
  101. dayNames: [
  102. "日", "一", "二", "三", "四", "五", "六",
  103. "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"
  104. ],
  105. monthNames: [
  106. "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",
  107. "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
  108. ],
  109. AmPm : ["上午","下午","上午","下午"],
  110. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';},
  111. srcformat: 'Y-m-d',
  112. newformat: 'm-d-Y',
  113. parseRe : /[#%\\\/:_;.,\t\s-]/,
  114. masks : {
  115. ISO8601Long:"Y-m-d H:i:s",
  116. ISO8601Short:"Y-m-d",
  117. ShortDate: "Y/j/n",
  118. LongDate: "l, F d, Y",
  119. FullDateTime: "l, F d, Y g:i:s A",
  120. MonthDay: "F d",
  121. ShortTime: "g:i A",
  122. LongTime: "g:i:s A",
  123. SortableDateTime: "Y-m-d\\TH:i:s",
  124. UniversalSortableDateTime: "Y-m-d H:i:sO",
  125. YearMonth: "F, Y"
  126. },
  127. reformatAfterEdit : false,
  128. userLocalTime : false
  129. },
  130. baseLinkUrl: '',
  131. showAction: '',
  132. target: '',
  133. checkbox : {disabled:true},
  134. idName : 'id'
  135. }
  136. });
  137. })(jQuery);