grid.locale-tw.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /**
  2. * @license jqGrid Chinese (Taiwan) Translation for v4.2
  3. * linquize
  4. * https://github.com/linquize/jqGrid
  5. * Dual licensed under the MIT and GPL licenses:
  6. * http://www.opensource.org/licenses/mit-license.php
  7. * http://www.gnu.org/licenses/gpl.html
  8. *
  9. **/
  10. /*jslint white: true */
  11. /*global jQuery, module, require */
  12. (function (factory) {
  13. "use strict";
  14. if (typeof define === "function" && define.amd) {
  15. // AMD. Register as an anonymous module.
  16. define(["jquery"], factory);
  17. } else if (typeof module === "object" && module.exports) {
  18. // Node/CommonJS
  19. module.exports = function (root, $) {
  20. if ($ === undefined) {
  21. // require("jquery") returns a factory that requires window to
  22. // build a jQuery instance, we normalize how we use modules
  23. // that require this pattern but the window provided is a noop
  24. // if it's defined (how jquery works)
  25. $ = typeof window !== "undefined" ?
  26. require("jquery") :
  27. require("jquery")(root || window);
  28. }
  29. factory($);
  30. return $;
  31. };
  32. } else {
  33. // Browser globals
  34. factory(jQuery);
  35. }
  36. }(function ($) {
  37. "use strict";
  38. var locInfo = {
  39. isRTL: false,
  40. defaults: {
  41. recordtext: "{0} - {1} 共 {2} 條",
  42. emptyrecords: "沒有記錄",
  43. loadtext: "載入中...",
  44. pgtext: " {0} 共 {1} 頁",
  45. pgfirst: "First Page",
  46. pglast: "Last Page",
  47. pgnext: "Next Page",
  48. pgprev: "Previous Page",
  49. pgrecs: "Records per Page",
  50. showhide: "Toggle Expand Collapse Grid",
  51. savetext: "正在儲存..."
  52. },
  53. search: {
  54. caption: "搜尋...",
  55. Find: "搜尋",
  56. Reset: "重設",
  57. odata: [
  58. { oper: "eq", text: "等於 " },
  59. { oper: "ne", text: "不等於 " },
  60. { oper: "lt", text: "小於 " },
  61. { oper: "le", text: "小於等於 " },
  62. { oper: "gt", text: "大於 " },
  63. { oper: "ge", text: "大於等於 " },
  64. { oper: "bw", text: "開始於 " },
  65. { oper: "bn", text: "不開始於 " },
  66. { oper: "in", text: "在其中 " },
  67. { oper: "ni", text: "不在其中 " },
  68. { oper: "ew", text: "結束於 " },
  69. { oper: "en", text: "不結束於 " },
  70. { oper: "cn", text: "包含 " },
  71. { oper: "nc", text: "不包含 " },
  72. { oper: "nu", text: "is null" },
  73. { oper: "nn", text: "is not null" }
  74. ],
  75. groupOps: [
  76. { op: "AND", text: "所有" },
  77. { op: "OR", text: "任一" }
  78. ],
  79. addGroupTitle: "Add subgroup",
  80. deleteGroupTitle: "Delete group",
  81. addRuleTitle: "Add rule",
  82. deleteRuleTitle: "Delete rule",
  83. operandTitle: "Click to select search operation.",
  84. resetTitle: "Reset Search Value"
  85. },
  86. edit: {
  87. addCaption: "新增記錄",
  88. editCaption: "編輯記錄",
  89. bSubmit: "提交",
  90. bCancel: "取消",
  91. bClose: "關閉",
  92. saveData: "資料已改變,是否儲存?",
  93. bYes: "是",
  94. bNo: "否",
  95. bExit: "取消",
  96. msg: {
  97. required: "此欄必要",
  98. number: "請輸入有效的數字",
  99. minValue: "值必須大於等於 ",
  100. maxValue: "值必須小於等於 ",
  101. email: "不是有效的e-mail地址",
  102. integer: "請輸入有效整数",
  103. date: "請輸入有效時間",
  104. url: "網址無效。前綴必須為 ('http://' 或 'https://')",
  105. nodefined: " 未定義!",
  106. novalue: " 需要傳回值!",
  107. customarray: "自訂函數應傳回陣列!",
  108. customfcheck: "自訂檢查應有自訂函數!"
  109. }
  110. },
  111. view: {
  112. caption: "查看記錄",
  113. bClose: "關閉"
  114. },
  115. del: {
  116. caption: "刪除",
  117. msg: "刪除已選記錄?",
  118. bSubmit: "刪除",
  119. bCancel: "取消"
  120. },
  121. nav: {
  122. edittext: "",
  123. edittitle: "編輯已選列",
  124. addtext: "",
  125. addtitle: "新增列",
  126. deltext: "",
  127. deltitle: "刪除已選列",
  128. searchtext: "",
  129. searchtitle: "搜尋記錄",
  130. refreshtext: "",
  131. refreshtitle: "重新整理表格",
  132. alertcap: "警告",
  133. alerttext: "請選擇列",
  134. viewtext: "",
  135. viewtitle: "檢視已選列",
  136. savetext: "",
  137. savetitle: "Save row",
  138. canceltext: "",
  139. canceltitle: "Cancel row editing"
  140. },
  141. col: {
  142. caption: "選擇欄",
  143. bSubmit: "確定",
  144. bCancel: "取消"
  145. },
  146. errors: {
  147. errcap: "錯誤",
  148. nourl: "未設定URL",
  149. norecords: "無需要處理的記錄",
  150. model: "colNames 和 colModel 長度不同!"
  151. },
  152. formatter: {
  153. integer: { thousandsSeparator: " ", defaultValue: "0" },
  154. number: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0.00" },
  155. currency: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0.00" },
  156. date: {
  157. dayNames: [
  158. "日", "一", "二", "三", "四", "五", "六",
  159. "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"
  160. ],
  161. monthNames: [
  162. "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",
  163. "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
  164. ],
  165. AmPm: ["上午", "下午", "上午", "下午"],
  166. S: function (j) {
  167. return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";
  168. },
  169. srcformat: "Y-m-d",
  170. newformat: "m-d-Y",
  171. masks: {
  172. ShortDate: "Y/j/n",
  173. LongDate: "l, F d, Y",
  174. FullDateTime: "l, F d, Y g:i:s A",
  175. MonthDay: "F d",
  176. ShortTime: "g:i A",
  177. LongTime: "g:i:s A",
  178. YearMonth: "F, Y"
  179. }
  180. }
  181. }
  182. };
  183. $.jgrid = $.jgrid || {};
  184. $.extend(true, $.jgrid, {
  185. defaults: {
  186. locale: "tw"
  187. },
  188. locales: {
  189. // In general the property name is free, but it's recommended to use the names based on
  190. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  191. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  192. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  193. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  194. tw: $.extend({}, locInfo, { name: "中文(台灣)", nameEnglish: "Chinese (Traditional, Taiwan)" }),
  195. "zh-TW": $.extend({}, locInfo, { name: "中文(台灣)", nameEnglish: "Chinese (Traditional, Taiwan)" })
  196. }
  197. });
  198. }));