grid.locale-tw.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. },
  19. search : {
  20. caption: "搜尋...",
  21. Find: "搜尋",
  22. Reset: "重設",
  23. 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:"不包含 "}],
  24. groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ]
  25. },
  26. edit : {
  27. addCaption: "新增記錄",
  28. editCaption: "編輯記錄",
  29. bSubmit: "提交",
  30. bCancel: "取消",
  31. bClose: "關閉",
  32. saveData: "資料已改變,是否儲存?",
  33. bYes : "是",
  34. bNo : "否",
  35. bExit : "取消",
  36. msg: {
  37. required:"此欄必要",
  38. number:"請輸入有效的數字",
  39. minValue:"值必須大於等於 ",
  40. maxValue:"值必須小於等於 ",
  41. email: "不是有效的e-mail地址",
  42. integer: "請輸入有效整数",
  43. date: "請輸入有效時間",
  44. url: "網址無效。前綴必須為 ('http://' 或 'https://')",
  45. nodefined : " 未定義!",
  46. novalue : " 需要傳回值!",
  47. customarray : "自訂函數應傳回陣列!",
  48. customfcheck : "自訂檢查應有自訂函數!"
  49. }
  50. },
  51. view : {
  52. caption: "查看記錄",
  53. bClose: "關閉"
  54. },
  55. del : {
  56. caption: "刪除",
  57. msg: "刪除已選記錄?",
  58. bSubmit: "刪除",
  59. bCancel: "取消"
  60. },
  61. nav : {
  62. edittext: "",
  63. edittitle: "編輯已選列",
  64. addtext:"",
  65. addtitle: "新增列",
  66. deltext: "",
  67. deltitle: "刪除已選列",
  68. searchtext: "",
  69. searchtitle: "搜尋記錄",
  70. refreshtext: "",
  71. refreshtitle: "重新整理表格",
  72. alertcap: "警告",
  73. alerttext: "請選擇列",
  74. viewtext: "",
  75. viewtitle: "檢視已選列"
  76. },
  77. col : {
  78. caption: "選擇欄",
  79. bSubmit: "確定",
  80. bCancel: "取消"
  81. },
  82. errors : {
  83. errcap : "錯誤",
  84. nourl : "未設定URL",
  85. norecords: "無需要處理的記錄",
  86. model : "colNames 和 colModel 長度不同!"
  87. },
  88. formatter : {
  89. integer : {thousandsSeparator: " ", defaultValue: '0'},
  90. number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
  91. currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  92. date : {
  93. dayNames: [
  94. "日", "一", "二", "三", "四", "五", "六",
  95. "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"
  96. ],
  97. monthNames: [
  98. "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",
  99. "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
  100. ],
  101. AmPm : ["上午","下午","上午","下午"],
  102. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
  103. srcformat: 'Y-m-d',
  104. newformat: 'm-d-Y',
  105. parseRe : /[Tt\\\/:_;.,\t\s-]/,
  106. masks : {
  107. ISO8601Long:"Y-m-d H:i:s",
  108. ISO8601Short:"Y-m-d",
  109. ShortDate: "Y/j/n",
  110. LongDate: "l, F d, Y",
  111. FullDateTime: "l, F d, Y g:i:s A",
  112. MonthDay: "F d",
  113. ShortTime: "g:i A",
  114. LongTime: "g:i:s A",
  115. SortableDateTime: "Y-m-d\\TH:i:s",
  116. UniversalSortableDateTime: "Y-m-d H:i:sO",
  117. YearMonth: "F, Y"
  118. },
  119. reformatAfterEdit : false
  120. },
  121. baseLinkUrl: '',
  122. showAction: '',
  123. target: '',
  124. checkbox : {disabled:true},
  125. idName : 'id'
  126. }
  127. });
  128. })(jQuery);