grid.locale-cn.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. ;(function($){
  2. /**
  3. * jqGrid English Translation
  4. * Tony Tomov tony@trirand.com
  5. * http://trirand.com/blog/
  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. $.jgrid = $.jgrid || {};
  11. $.extend($.jgrid,{
  12. defaults : {
  13. recordtext: "当前显示{0} - {1}条\u3000共 {2} 条",
  14. emptyrecords: "无数据显示",
  15. loadtext: "读取中...",
  16. pgtext : " {0} 共 {1} 页"
  17. },
  18. search : {
  19. caption: "搜索...",
  20. Find: "查找",
  21. Reset: "重置",
  22. odata: [{ oper:'eq', text:'等于\u3000\u3000'},
  23. { oper:'ne', text:'不等\u3000\u3000'},
  24. { oper:'lt', text:'小于\u3000\u3000'},
  25. { oper:'le', text:'小于等于'},
  26. { oper:'gt', text:'大于\u3000\u3000'},
  27. { oper:'ge', text:'大于等于'},
  28. { oper:'bw', text:'开始于'},
  29. { oper:'bn', text:'不开始于'},
  30. { oper:'in', text:'属于\u3000\u3000'},
  31. { oper:'ni', text:'不属于'},
  32. { oper:'ew', text:'结束于'},
  33. { oper:'en', text:'不结束于'},
  34. { oper:'cn', text:'包含\u3000\u3000'},
  35. { oper:'nc', text:'不包含'}],
  36. groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任意" } ]
  37. },
  38. edit : {
  39. addCaption: "添加记录",
  40. editCaption: "编辑记录",
  41. bSubmit: "提交",
  42. bCancel: "取消",
  43. bClose: "关闭",
  44. saveData: "数据已改变,是否保存?",
  45. bYes : "是",
  46. bNo : "否",
  47. bExit : "取消",
  48. msg: {
  49. required:"此字段必需",
  50. number:"请输入有效数字",
  51. minValue:"输值必须大于等于 ",
  52. maxValue:"输值必须小于等于 ",
  53. email: "这不是有效的e-mail地址",
  54. integer: "请输入有效整数",
  55. date: "请输入有效时间",
  56. url: "无效网址。前缀必须为 ('http://' 或 'https://')",
  57. nodefined : " 未定义!",
  58. novalue : " 需要返回值!",
  59. customarray : "自定义函数需要返回数组!",
  60. customfcheck : "自定义的函数应该用自定义的验证!"
  61. }
  62. },
  63. view : {
  64. caption: "查看记录",
  65. bClose: "关闭"
  66. },
  67. del : {
  68. caption: "删除",
  69. msg: "删除所选记录?",
  70. bSubmit: "删除",
  71. bCancel: "取消"
  72. },
  73. nav : {
  74. edittext: "",
  75. edittitle: "编辑所选记录",
  76. addtext:"",
  77. addtitle: "添加新记录",
  78. deltext: "",
  79. deltitle: "删除所选记录",
  80. searchtext: "",
  81. searchtitle: "查找",
  82. refreshtext: "",
  83. refreshtitle: "刷新表格",
  84. alertcap: "注意",
  85. alerttext: "请选择记录",
  86. viewtext: "",
  87. viewtitle: "查看所选记录"
  88. },
  89. col : {
  90. caption: "选择列",
  91. bSubmit: "确定",
  92. bCancel: "取消"
  93. },
  94. errors : {
  95. errcap : "错误",
  96. nourl : "没有设置url",
  97. norecords: "没有要处理的记录",
  98. model : "colNames 和 colModel 长度不等!"
  99. },
  100. formatter : {
  101. integer : {thousandsSeparator: ",", defaultValue: '0'},
  102. number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'},
  103. currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  104. date : {
  105. dayNames: [
  106. "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
  107. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  108. ],
  109. monthNames: [
  110. "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
  111. "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
  112. ],
  113. AmPm : ["am","pm","AM","PM"],
  114. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';},
  115. srcformat: 'Y-m-d',
  116. newformat: 'n/j/Y',
  117. parseRe : /[Tt\\\/:_;.,\t\s-]/,
  118. masks : {
  119. // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
  120. // and see http://docs.jquery.com/UI/Datepicker/formatDate
  121. // and https://github.com/jquery/globalize#dates for alternative formats used frequently
  122. // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
  123. // information about date, time, numbers and currency formats used in different countries
  124. // one should just convert the information in PHP format
  125. ISO8601Long:"Y-m-d H:i:s",
  126. ISO8601Short:"Y-m-d",
  127. // short date:
  128. // n - Numeric representation of a month, without leading zeros
  129. // j - Day of the month without leading zeros
  130. // Y - A full numeric representation of a year, 4 digits
  131. // example: 3/1/2012 which means 1 March 2012
  132. ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
  133. // long date:
  134. // l - A full textual representation of the day of the week
  135. // F - A full textual representation of a month
  136. // d - Day of the month, 2 digits with leading zeros
  137. // Y - A full numeric representation of a year, 4 digits
  138. LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
  139. // long date with long time:
  140. // l - A full textual representation of the day of the week
  141. // F - A full textual representation of a month
  142. // d - Day of the month, 2 digits with leading zeros
  143. // Y - A full numeric representation of a year, 4 digits
  144. // g - 12-hour format of an hour without leading zeros
  145. // i - Minutes with leading zeros
  146. // s - Seconds, with leading zeros
  147. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  148. FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
  149. // month day:
  150. // F - A full textual representation of a month
  151. // d - Day of the month, 2 digits with leading zeros
  152. MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
  153. // short time (without seconds)
  154. // g - 12-hour format of an hour without leading zeros
  155. // i - Minutes with leading zeros
  156. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  157. ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
  158. // long time (with seconds)
  159. // g - 12-hour format of an hour without leading zeros
  160. // i - Minutes with leading zeros
  161. // s - Seconds, with leading zeros
  162. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  163. LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
  164. SortableDateTime: "Y-m-d\\TH:i:s",
  165. UniversalSortableDateTime: "Y-m-d H:i:sO",
  166. // month with year
  167. // Y - A full numeric representation of a year, 4 digits
  168. // F - A full textual representation of a month
  169. YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
  170. },
  171. reformatAfterEdit : false
  172. },
  173. baseLinkUrl: '',
  174. showAction: '',
  175. target: '',
  176. checkbox : {disabled:true},
  177. idName : 'id'
  178. }
  179. });
  180. })(jQuery);