/trunk/MVC/jqGrid Helper Examples/jqGrid.DungDepTrai/Scripts/jquery.jqGrid.locale-en-3.8.2.js

# · JavaScript · 128 lines · 119 code · 1 blank · 8 comment · 1 complexity · 796caaed572b993e703426060635fc41 MD5 · raw file

  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 = {
  11. defaults : {
  12. recordtext: "View {0} - {1} of {2}",
  13. emptyrecords: "No records to view",
  14. loadtext: "Loading...",
  15. pgtext : "Page {0} of {1}"
  16. },
  17. search : {
  18. caption: "Search...",
  19. Find: "Find",
  20. Reset: "Reset",
  21. odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'],
  22. groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ],
  23. matchText: " match",
  24. rulesText: " rules"
  25. },
  26. edit : {
  27. addCaption: "Add Record",
  28. editCaption: "Edit Record",
  29. bSubmit: "Submit",
  30. bCancel: "Cancel",
  31. bClose: "Close",
  32. saveData: "Data has been changed! Save changes?",
  33. bYes : "Yes",
  34. bNo : "No",
  35. bExit : "Cancel",
  36. msg: {
  37. required:"Field is required",
  38. number:"Please, enter valid number",
  39. minValue:"value must be greater than or equal to ",
  40. maxValue:"value must be less than or equal to",
  41. email: "is not a valid e-mail",
  42. integer: "Please, enter valid integer value",
  43. date: "Please, enter valid date value",
  44. url: "is not a valid URL. Prefix required ('http://' or 'https://')",
  45. nodefined : " is not defined!",
  46. novalue : " return value is required!",
  47. customarray : "Custom function should return array!",
  48. customfcheck : "Custom function should be present in case of custom checking!"
  49. }
  50. },
  51. view : {
  52. caption: "View Record",
  53. bClose: "Close"
  54. },
  55. del : {
  56. caption: "Delete",
  57. msg: "Delete selected record(s)?",
  58. bSubmit: "Delete",
  59. bCancel: "Cancel"
  60. },
  61. nav : {
  62. edittext: "",
  63. edittitle: "Edit selected row",
  64. addtext:"",
  65. addtitle: "Add new row",
  66. deltext: "",
  67. deltitle: "Delete selected row",
  68. searchtext: "",
  69. searchtitle: "Find records",
  70. refreshtext: "",
  71. refreshtitle: "Reload Grid",
  72. alertcap: "Warning",
  73. alerttext: "Please, select row",
  74. viewtext: "",
  75. viewtitle: "View selected row"
  76. },
  77. col : {
  78. caption: "Select columns",
  79. bSubmit: "Ok",
  80. bCancel: "Cancel"
  81. },
  82. errors : {
  83. errcap : "Error",
  84. nourl : "No url is set",
  85. norecords: "No records to process",
  86. model : "Length of colNames <> colModel!"
  87. },
  88. formatter : {
  89. integer : {thousandsSeparator: " ", defaultValue: '0'},
  90. number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
  91. currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  92. date : {
  93. dayNames: [
  94. "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
  95. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  96. ],
  97. monthNames: [
  98. "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
  99. "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
  100. ],
  101. AmPm : ["am","pm","AM","PM"],
  102. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
  103. srcformat: 'Y-m-d',
  104. newformat: 'd/m/Y',
  105. masks : {
  106. ISO8601Long:"Y-m-d H:i:s",
  107. ISO8601Short:"Y-m-d",
  108. ShortDate: "n/j/Y",
  109. LongDate: "l, F d, Y",
  110. FullDateTime: "l, F d, Y g:i:s A",
  111. MonthDay: "F d",
  112. ShortTime: "g:i A",
  113. LongTime: "g:i:s A",
  114. SortableDateTime: "Y-m-d\\TH:i:s",
  115. UniversalSortableDateTime: "Y-m-d H:i:sO",
  116. YearMonth: "F, Y"
  117. },
  118. reformatAfterEdit : false
  119. },
  120. baseLinkUrl: '',
  121. showAction: '',
  122. target: '',
  123. checkbox : {disabled:true},
  124. idName : 'id'
  125. }
  126. };
  127. })(jQuery);