纽威
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.

137 lines
4.2 KiB

3 years ago
  1. ;(function($){
  2. /**
  3. * jqGrid Chinese Translation for v4.2
  4. * henryyan 2011.11.30
  5. * http://www.wsria.com
  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. * update 2011.11.30
  11. * add double u3000 SPACE for search:odata to fix SEARCH box display err when narrow width from only use of eq/ne/cn/in/lt/gt operator under IE6/7
  12. **/
  13. $.jgrid = $.jgrid || {};
  14. $.extend($.jgrid,{
  15. defaults : {
  16. recordtext: "显示第 {0} - {1} 条记录\u3000检索到 {2} 条记录", // 共字前是全角空格
  17. emptyrecords: "无数据显示",
  18. loadtext: "读取中...",
  19. pgtext : " {0} 共 {1} 页"
  20. //recordtext: "Display The {0} - {1} Item Record\u3000Retrieved {2} Item Record", // 共字前是全角空格
  21. //emptyrecords: "No data display",
  22. //loadtext: "Reading...",
  23. //pgtext: " {0} Total {1} Page"
  24. },
  25. search : {
  26. caption: "搜索...",
  27. Find: "查找",
  28. Reset: "重置",
  29. odata : ['等于\u3000\u3000', '不等\u3000\u3000', '小于\u3000\u3000', '小于等于','大于\u3000\u3000','大于等于',
  30. '开始于','不开始于','属于\u3000\u3000','不属于','结束于','不结束于','包含\u3000\u3000','不包含','空值于\u3000\u3000','非空值'],
  31. groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ],
  32. matchText: " 匹配",
  33. rulesText: " 规则"
  34. },
  35. edit : {
  36. addCaption: "添加记录",
  37. editCaption: "编辑记录",
  38. bSubmit: "提交",
  39. bCancel: "取消",
  40. bClose: "关闭",
  41. saveData: "数据已改变,是否保存?",
  42. bYes : "是",
  43. bNo : "否",
  44. bExit : "取消",
  45. msg: {
  46. required:"此字段必需",
  47. number:"请输入有效数字",
  48. minValue:"输值必须大于等于 ",
  49. maxValue:"输值必须小于等于 ",
  50. email: "这不是有效的e-mail地址",
  51. integer: "请输入有效整数",
  52. date: "请输入有效时间",
  53. url: "无效网址。前缀必须为 ('http://' 或 'https://')",
  54. nodefined : " 未定义!",
  55. novalue : " 需要返回值!",
  56. customarray : "自定义函数需要返回数组!",
  57. customfcheck : "Custom function should be present in case of custom checking!"
  58. }
  59. },
  60. view : {
  61. caption: "查看记录",
  62. bClose: "关闭"
  63. },
  64. del : {
  65. caption: "删除",
  66. msg: "删除所选记录?",
  67. bSubmit: "删除",
  68. bCancel: "取消"
  69. },
  70. nav : {
  71. edittext: "",
  72. edittitle: "编辑所选记录",
  73. addtext:"",
  74. addtitle: "添加新记录",
  75. deltext: "",
  76. deltitle: "删除所选记录",
  77. searchtext: "",
  78. searchtitle: "查找",
  79. refreshtext: "",
  80. refreshtitle: "刷新表格",
  81. alertcap: "注意",
  82. alerttext: "请选择记录",
  83. viewtext: "",
  84. viewtitle: "查看所选记录"
  85. },
  86. col : {
  87. caption: "选择列",
  88. bSubmit: "确定",
  89. bCancel: "取消"
  90. },
  91. errors : {
  92. errcap : "错误",
  93. nourl : "没有设置url",
  94. norecords: "没有要处理的记录",
  95. model : "colNames 和 colModel 长度不等!"
  96. },
  97. formatter : {
  98. integer : {thousandsSeparator: " ", defaultValue: '0'},
  99. number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
  100. currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  101. date : {
  102. dayNames: [
  103. "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
  104. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  105. ],
  106. monthNames: [
  107. "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
  108. "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
  109. ],
  110. AmPm : ["am","pm","AM","PM"],
  111. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
  112. srcformat: 'Y-m-d',
  113. newformat: 'm-d-Y',
  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. },
  129. baseLinkUrl: '',
  130. showAction: '',
  131. target: '',
  132. checkbox : {disabled:true},
  133. idName : 'id'
  134. }
  135. });
  136. })(jQuery);