grid.locale-cn.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. },
  21. search : {
  22. caption: "搜索...",
  23. Find: "查找",
  24. Reset: "重置",
  25. odata : [{oper:'eq', text:'等于\u3000\u3000'},{oper:'ne', text: '不等\u3000\u3000'}, { oper:'lt', text:'小于\u3000\u3000'},{ oper:'le', text: '小于等于'},{ oper:'gt', text:'大于\u3000\u3000'},{ oper:'ge', text:'大于等于'},
  26. {oper:'bw', text:'开始于'},{ oper:'bn', text:'不开始于'},{ oper:'in', text:'属于\u3000\u3000'},{ oper:'ni', text:'不属于'},{ oper:'ew', text:'结束于'},{ oper:'en', text:'不结束于'},{ oper:'cn', text:'包含\u3000\u3000'},{ oper:'nc', text:'不包含'},{ oper:'nu', text:'空值于\u3000\u3000'},{ oper:'nn', text:'非空值'}],
  27. groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ]
  28. },
  29. edit : {
  30. addCaption: "添加记录",
  31. editCaption: "编辑记录",
  32. bSubmit: "提交",
  33. bCancel: "取消",
  34. bClose: "关闭",
  35. saveData: "数据已改变,是否保存?",
  36. bYes : "是",
  37. bNo : "否",
  38. bExit : "取消",
  39. msg: {
  40. required:"此字段必需",
  41. number:"请输入有效数字",
  42. minValue:"输值必须大于等于 ",
  43. maxValue:"输值必须小于等于 ",
  44. email: "这不是有效的e-mail地址",
  45. integer: "请输入有效整数",
  46. date: "请输入有效时间",
  47. url: "无效网址。前缀必须为 ('http://' 或 'https://')",
  48. nodefined : " 未定义!",
  49. novalue : " 需要返回值!",
  50. customarray : "自定义函数需要返回数组!",
  51. customfcheck : "Custom function should be present in case of custom checking!"
  52. }
  53. },
  54. view : {
  55. caption: "查看记录",
  56. bClose: "关闭"
  57. },
  58. del : {
  59. caption: "删除",
  60. msg: "删除所选记录?",
  61. bSubmit: "删除",
  62. bCancel: "取消"
  63. },
  64. nav : {
  65. edittext: "",
  66. edittitle: "编辑所选记录",
  67. addtext:"",
  68. addtitle: "添加新记录",
  69. deltext: "",
  70. deltitle: "删除所选记录",
  71. searchtext: "",
  72. searchtitle: "查找",
  73. refreshtext: "",
  74. refreshtitle: "刷新表格",
  75. alertcap: "注意",
  76. alerttext: "请选择记录",
  77. viewtext: "",
  78. viewtitle: "查看所选记录"
  79. },
  80. col : {
  81. caption: "选择列",
  82. bSubmit: "确定",
  83. bCancel: "取消"
  84. },
  85. errors : {
  86. errcap : "错误",
  87. nourl : "没有设置url",
  88. norecords: "没有要处理的记录",
  89. model : "colNames 和 colModel 长度不等!"
  90. },
  91. formatter : {
  92. integer : {thousandsSeparator: " ", defaultValue: '0'},
  93. number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
  94. currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  95. date : {
  96. dayNames: [
  97. "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
  98. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  99. ],
  100. monthNames: [
  101. "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
  102. "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
  103. ],
  104. AmPm : ["am","pm","AM","PM"],
  105. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
  106. srcformat: 'Y-m-d',
  107. newformat: 'm-d-Y',
  108. parseRe : /[Tt\\\/:_;.,\t\s-]/,
  109. masks : {
  110. ISO8601Long:"Y-m-d H:i:s",
  111. ISO8601Short:"Y-m-d",
  112. ShortDate: "Y/j/n",
  113. LongDate: "l, F d, Y",
  114. FullDateTime: "l, F d, Y g:i:s A",
  115. MonthDay: "F d",
  116. ShortTime: "g:i A",
  117. LongTime: "g:i:s A",
  118. SortableDateTime: "Y-m-d\\TH:i:s",
  119. UniversalSortableDateTime: "Y-m-d H:i:sO",
  120. YearMonth: "F, Y"
  121. },
  122. reformatAfterEdit : false
  123. },
  124. baseLinkUrl: '',
  125. showAction: '',
  126. target: '',
  127. checkbox : {disabled:true},
  128. idName : 'id'
  129. }
  130. });
  131. })(jQuery);