grid.locale-en.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /**
  2. * @license jqGrid English Translation
  3. * Tony Tomov tony@trirand.com
  4. * modified by Oleg Kiriljuk oleg.kiriljuk@ok-soft-gmbh.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. /*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. name: "English (United States)",
  40. nameEnglish: "English (United States)",
  41. isRTL: false,
  42. defaults: {
  43. recordtext: "View {0} - {1} of {2}",
  44. emptyrecords: "No records to view",
  45. loadtext: "Loading...",
  46. pgtext: "Page {0} of {1}",
  47. pgfirst: "First Page",
  48. pglast: "Last Page",
  49. pgnext: "Next Page",
  50. pgprev: "Previous Page",
  51. pgrecs: "Records per Page",
  52. showhide: "Toggle Expand Collapse Grid",
  53. savetext: "Saving..."
  54. },
  55. search: {
  56. caption: "Search...",
  57. Find: "Find",
  58. Reset: "Reset",
  59. odata: [
  60. { oper: "eq", text: "equal" },
  61. { oper: "ne", text: "not equal" },
  62. { oper: "lt", text: "less" },
  63. { oper: "le", text: "less or equal" },
  64. { oper: "gt", text: "greater" },
  65. { oper: "ge", text: "greater or equal" },
  66. { oper: "bw", text: "begins with" },
  67. { oper: "bn", text: "does not begin with" },
  68. { oper: "in", text: "is in" },
  69. { oper: "ni", text: "is not in" },
  70. { oper: "ew", text: "ends with" },
  71. { oper: "en", text: "does not end with" },
  72. { oper: "cn", text: "contains" },
  73. { oper: "nc", text: "does not contain" },
  74. { oper: "nu", text: "is null" },
  75. { oper: "nn", text: "is not null" }
  76. ],
  77. groupOps: [
  78. { op: "AND", text: "all" },
  79. { op: "OR", text: "any" }
  80. ],
  81. addGroupTitle: "Add subgroup",
  82. deleteGroupTitle: "Delete group",
  83. addRuleTitle: "Add rule",
  84. deleteRuleTitle: "Delete rule",
  85. operandTitle: "Click to select search operation.",
  86. resetTitle: "Reset Search Value"
  87. },
  88. edit: {
  89. addCaption: "Add Record",
  90. editCaption: "Edit Record",
  91. bSubmit: "Submit",
  92. bCancel: "Cancel",
  93. bClose: "Close",
  94. saveData: "Data has been changed! Save changes?",
  95. bYes: "Yes",
  96. bNo: "No",
  97. bExit: "Cancel",
  98. msg: {
  99. required: "Field is required",
  100. number: "Please, enter valid number",
  101. minValue: "value must be greater than or equal to ",
  102. maxValue: "value must be less than or equal to",
  103. email: "is not a valid e-mail",
  104. integer: "Please, enter valid integer value",
  105. date: "Please, enter valid date value",
  106. url: "is not a valid URL. Prefix required ('http://' or 'https://')",
  107. nodefined: " is not defined!",
  108. novalue: " return value is required!",
  109. customarray: "Custom function should return array!",
  110. customfcheck: "Custom function should be present in case of custom checking!"
  111. }
  112. },
  113. view: {
  114. caption: "View Record",
  115. bClose: "Close"
  116. },
  117. del: {
  118. caption: "Delete",
  119. msg: "Delete selected record(s)?",
  120. bSubmit: "Delete",
  121. bCancel: "Cancel"
  122. },
  123. nav: {
  124. edittext: "",
  125. edittitle: "Edit selected row",
  126. addtext: "",
  127. addtitle: "Add new row",
  128. deltext: "",
  129. deltitle: "Delete selected row",
  130. searchtext: "",
  131. searchtitle: "Find records",
  132. refreshtext: "",
  133. refreshtitle: "Reload Grid",
  134. alertcap: "Warning",
  135. alerttext: "Please, select row",
  136. viewtext: "",
  137. viewtitle: "View selected row",
  138. savetext: "",
  139. savetitle: "Save row",
  140. canceltext: "",
  141. canceltitle: "Cancel row editing"
  142. },
  143. col: {
  144. caption: "Select columns",
  145. bSubmit: "Ok",
  146. bCancel: "Cancel"
  147. },
  148. errors: {
  149. errcap: "Error",
  150. nourl: "No url is set",
  151. norecords: "No records to process",
  152. model: "Length of colNames <> colModel!"
  153. },
  154. formatter: {
  155. integer: {
  156. thousandsSeparator: ",",
  157. defaultValue: "0"
  158. },
  159. number: {
  160. decimalSeparator: ".",
  161. thousandsSeparator: ",",
  162. decimalPlaces: 2,
  163. defaultValue: "0.00"
  164. },
  165. currency: {
  166. decimalSeparator: ".",
  167. thousandsSeparator: ",",
  168. decimalPlaces: 2,
  169. prefix: "",
  170. suffix: "",
  171. defaultValue: "0.00"
  172. },
  173. date: {
  174. dayNames: [
  175. "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
  176. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  177. ],
  178. monthNames: [
  179. "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
  180. "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
  181. ],
  182. AmPm: ["am", "pm", "AM", "PM"],
  183. S: function (j) {
  184. var ending = ["st", "nd", "rd", "th"];
  185. return j < 11 || j > 13 ? ending[Math.min((j - 1) % 10, 3)] : "th";
  186. },
  187. srcformat: "Y-m-d",
  188. newformat: "n/j/Y",
  189. masks: {
  190. // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
  191. // and see http://docs.jquery.com/UI/Datepicker/formatDate
  192. // and https://github.com/jquery/globalize#dates for alternative formats used frequently
  193. // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
  194. // information about date, time, numbers and currency formats used in different countries
  195. // one should just convert the information in PHP format
  196. // short date:
  197. // n - Numeric representation of a month, without leading zeros
  198. // j - Day of the month without leading zeros
  199. // Y - A full numeric representation of a year, 4 digits
  200. // example: 3/1/2012 which means 1 March 2012
  201. ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
  202. // long date:
  203. // l - A full textual representation of the day of the week
  204. // F - A full textual representation of a month
  205. // d - Day of the month, 2 digits with leading zeros
  206. // Y - A full numeric representation of a year, 4 digits
  207. LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
  208. // long date with long time:
  209. // l - A full textual representation of the day of the week
  210. // F - A full textual representation of a month
  211. // d - Day of the month, 2 digits with leading zeros
  212. // Y - A full numeric representation of a year, 4 digits
  213. // g - 12-hour format of an hour without leading zeros
  214. // i - Minutes with leading zeros
  215. // s - Seconds, with leading zeros
  216. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  217. FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
  218. // month day:
  219. // F - A full textual representation of a month
  220. // d - Day of the month, 2 digits with leading zeros
  221. MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
  222. // short time (without seconds)
  223. // g - 12-hour format of an hour without leading zeros
  224. // i - Minutes with leading zeros
  225. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  226. ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
  227. // long time (with seconds)
  228. // g - 12-hour format of an hour without leading zeros
  229. // i - Minutes with leading zeros
  230. // s - Seconds, with leading zeros
  231. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  232. LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
  233. // month with year
  234. // Y - A full numeric representation of a year, 4 digits
  235. // F - A full textual representation of a month
  236. YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
  237. }
  238. }
  239. }
  240. };
  241. $.jgrid = $.jgrid || {};
  242. $.extend(true, $.jgrid, {
  243. defaults: {
  244. locale: "en-US"
  245. },
  246. locales: {
  247. // In general the property name is free, but it's recommended to use the names based on
  248. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  249. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  250. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  251. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  252. "en-US": locInfo
  253. }
  254. });
  255. }));