grid.locale-cnffe4.js 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /**
  2. * jqGrid Chinese Translation
  3. * 咖啡兔 yanhonglei@gmail.com
  4. * http://www.kafeitu.me
  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. /*global jQuery, define */
  10. (function( factory ) {
  11. "use strict";
  12. if ( typeof define === "function" && define.amd ) {
  13. // AMD. Register as an anonymous module.
  14. define([
  15. "jquery",
  16. "../grid.base"
  17. ], factory );
  18. } else {
  19. // Browser globals
  20. factory( jQuery );
  21. }
  22. }(function( $ ) {
  23. $.jgrid = $.jgrid || {};
  24. if(!$.jgrid.hasOwnProperty("regional")) {
  25. $.jgrid.regional = [];
  26. }
  27. $.jgrid.regional["cn"] = {
  28. defaults : {
  29. recordtext: "{0} - {1}\u3000共 {2} 条", // 共字前是全角空格
  30. emptyrecords: "无数据显示",
  31. loadtext: "读取中...",
  32. savetext: "Saving...",
  33. pgtext : " {0} 共 {1} 页",
  34. pgfirst : "First Page",
  35. pglast : "Last Page",
  36. pgnext : "Next Page",
  37. pgprev : "Previous Page",
  38. pgrecs : "Records per Page",
  39. showhide: "Toggle Expand Collapse Grid",
  40. // mobile
  41. pagerCaption : "Grid::Page Settings",
  42. pageText : "Page:",
  43. recordPage : "Records per Page",
  44. nomorerecs : "No more records...",
  45. scrollPullup: "Pull up to load more...",
  46. scrollPulldown : "Pull down to refresh...",
  47. scrollRefresh : "Release to refresh..."
  48. },
  49. search : {
  50. caption: "搜索...",
  51. Find: "查找",
  52. Reset: "重置",
  53. 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:'大于等于'},{ 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:'不存在'},{ oper:'nn', text:'存在'}],
  54. groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ],
  55. operandTitle : "Click to select search operation.",
  56. resetTitle : "Reset Search Value"
  57. },
  58. edit : {
  59. addCaption: "添加记录",
  60. editCaption: "编辑记录",
  61. bSubmit: "提交",
  62. bCancel: "取消",
  63. bClose: "关闭",
  64. saveData: "数据已改变,是否保存?",
  65. bYes : "是",
  66. bNo : "否",
  67. bExit : "取消",
  68. msg: {
  69. required:"此字段必需",
  70. number:"请输入有效数字",
  71. minValue:"输值必须大于等于 ",
  72. maxValue:"输值必须小于等于 ",
  73. email: "这不是有效的e-mail地址",
  74. integer: "请输入有效整数",
  75. date: "请输入有效时间",
  76. url: "无效网址。前缀必须为 ('http://' 或 'https://')",
  77. nodefined : " 未定义!",
  78. novalue : " 需要返回值!",
  79. customarray : "自定义函数需要返回数组!",
  80. customfcheck : "必须有自定义函数!"
  81. }
  82. },
  83. view : {
  84. caption: "查看记录",
  85. bClose: "关闭"
  86. },
  87. del : {
  88. caption: "删除",
  89. msg: "删除所选记录?",
  90. bSubmit: "删除",
  91. bCancel: "取消"
  92. },
  93. nav : {
  94. edittext: "",
  95. edittitle: "编辑所选记录",
  96. addtext:"",
  97. addtitle: "添加新记录",
  98. deltext: "",
  99. deltitle: "删除所选记录",
  100. searchtext: "",
  101. searchtitle: "查找",
  102. refreshtext: "",
  103. refreshtitle: "刷新表格",
  104. alertcap: "注意",
  105. alerttext: "请选择记录",
  106. viewtext: "",
  107. viewtitle: "查看所选记录",
  108. savetext: "",
  109. savetitle: "Save row",
  110. canceltext: "",
  111. canceltitle : "Cancel row editing",
  112. selectcaption : "Actions..."
  113. },
  114. col : {
  115. caption: "选择列",
  116. bSubmit: "确定",
  117. bCancel: "取消"
  118. },
  119. errors : {
  120. errcap : "错误",
  121. nourl : "没有设置url",
  122. norecords: "没有要处理的记录",
  123. model : "colNames 和 colModel 长度不等!"
  124. },
  125. formatter : {
  126. integer : {thousandsSeparator: ",", defaultValue: '0'},
  127. number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'},
  128. currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  129. date : {
  130. dayNames: [
  131. "日", "一", "二", "三", "四", "五", "六",
  132. "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六",
  133. ],
  134. monthNames: [
  135. "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",
  136. "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
  137. ],
  138. AmPm : ["am","pm","上午","下午"],
  139. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';},
  140. srcformat: 'Y-m-d',
  141. newformat: 'Y-m-d',
  142. parseRe : /[#%\\\/:_;.,\t\s-]/,
  143. masks : {
  144. // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
  145. // and see http://docs.jquery.com/UI/Datepicker/formatDate
  146. // and https://github.com/jquery/globalize#dates for alternative formats used frequently
  147. // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
  148. // information about date, time, numbers and currency formats used in different countries
  149. // one should just convert the information in PHP format
  150. ISO8601Long:"Y-m-d H:i:s",
  151. ISO8601Short:"Y-m-d",
  152. // short date:
  153. // n - Numeric representation of a month, without leading zeros
  154. // j - Day of the month without leading zeros
  155. // Y - A full numeric representation of a year, 4 digits
  156. // example: 3/1/2012 which means 1 March 2012
  157. ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
  158. // long date:
  159. // l - A full textual representation of the day of the week
  160. // F - A full textual representation of a month
  161. // d - Day of the month, 2 digits with leading zeros
  162. // Y - A full numeric representation of a year, 4 digits
  163. LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
  164. // long date with long time:
  165. // l - A full textual representation of the day of the week
  166. // F - A full textual representation of a month
  167. // d - Day of the month, 2 digits with leading zeros
  168. // Y - A full numeric representation of a year, 4 digits
  169. // g - 12-hour format of an hour without leading zeros
  170. // i - Minutes with leading zeros
  171. // s - Seconds, with leading zeros
  172. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  173. FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
  174. // month day:
  175. // F - A full textual representation of a month
  176. // d - Day of the month, 2 digits with leading zeros
  177. MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
  178. // short time (without seconds)
  179. // g - 12-hour format of an hour without leading zeros
  180. // i - Minutes with leading zeros
  181. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  182. ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
  183. // long time (with seconds)
  184. // g - 12-hour format of an hour without leading zeros
  185. // i - Minutes with leading zeros
  186. // s - Seconds, with leading zeros
  187. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  188. LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
  189. SortableDateTime: "Y-m-d\\TH:i:s",
  190. UniversalSortableDateTime: "Y-m-d H:i:sO",
  191. // month with year
  192. // Y - A full numeric representation of a year, 4 digits
  193. // F - A full textual representation of a month
  194. YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
  195. },
  196. reformatAfterEdit : false,
  197. userLocalTime : false
  198. },
  199. baseLinkUrl: '',
  200. showAction: '',
  201. target: '',
  202. checkbox : {disabled:true},
  203. idName : 'id'
  204. }
  205. };
  206. }));