grid.locale-vi.js 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /**
  2. * @license jqGrid Vietnamese Translation
  3. * Lê Đình Dũng dungtdc@gmail.com
  4. * http://trirand.com/blog/
  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. /*jslint white: true */
  10. /*global jQuery, module, require */
  11. (function (factory) {
  12. "use strict";
  13. if (typeof define === "function" && define.amd) {
  14. // AMD. Register as an anonymous module.
  15. define(["jquery"], factory);
  16. } else if (typeof module === "object" && module.exports) {
  17. // Node/CommonJS
  18. module.exports = function (root, $) {
  19. if ($ === undefined) {
  20. // require("jquery") returns a factory that requires window to
  21. // build a jQuery instance, we normalize how we use modules
  22. // that require this pattern but the window provided is a noop
  23. // if it's defined (how jquery works)
  24. $ = typeof window !== "undefined" ?
  25. require("jquery") :
  26. require("jquery")(root || window);
  27. }
  28. factory($);
  29. return $;
  30. };
  31. } else {
  32. // Browser globals
  33. factory(jQuery);
  34. }
  35. }(function ($) {
  36. "use strict";
  37. var locInfo = {
  38. isRTL: false,
  39. defaults: {
  40. recordtext: "View {0} - {1} of {2}",
  41. emptyrecords: "Không có dữ liệu",
  42. loadtext: "Đang nạp dữ liệu...",
  43. pgtext: "Trang {0} trong tổng số {1}",
  44. pgfirst: "First Page",
  45. pglast: "Last Page",
  46. pgnext: "Next Page",
  47. pgprev: "Previous Page",
  48. pgrecs: "Records per Page",
  49. showhide: "Toggle Expand Collapse Grid",
  50. savetext: "Đang lưu..."
  51. },
  52. search: {
  53. caption: "Tìm kiếm...",
  54. Find: "Tìm",
  55. Reset: "Khởi tạo lại",
  56. odata: [
  57. { oper: "eq", text: "bằng" },
  58. { oper: "ne", text: "không bằng" },
  59. { oper: "lt", text: "bé hơn" },
  60. { oper: "le", text: "bé hơn hoặc bằng" },
  61. { oper: "gt", text: "lớn hơn" },
  62. { oper: "ge", text: "lớn hơn hoặc bằng" },
  63. { oper: "bw", text: "bắt đầu với" },
  64. { oper: "bn", text: "không bắt đầu với" },
  65. { oper: "in", text: "trong" },
  66. { oper: "ni", text: "không nằm trong" },
  67. { oper: "ew", text: "kết thúc với" },
  68. { oper: "en", text: "không kết thúc với" },
  69. { oper: "cn", text: "chứa" },
  70. { oper: "nc", text: "không chứa" },
  71. { oper: "nu", text: "is null" },
  72. { oper: "nn", text: "is not null" }
  73. ],
  74. groupOps: [
  75. { op: "VÀ", text: "tất cả" },
  76. { op: "HOẶC", text: "bất kỳ" }
  77. ],
  78. addGroupTitle: "Add subgroup",
  79. deleteGroupTitle: "Delete group",
  80. addRuleTitle: "Add rule",
  81. deleteRuleTitle: "Delete rule",
  82. operandTitle: "Click to select search operation.",
  83. resetTitle: "Reset Search Value"
  84. },
  85. edit: {
  86. addCaption: "Thêm bản ghi",
  87. editCaption: "Sửa bản ghi",
  88. bSubmit: "Gửi",
  89. bCancel: "Hủy bỏ",
  90. bClose: "Đóng",
  91. saveData: "Dữ liệu đã thay đổi! Có lưu thay đổi không?",
  92. bYes: "Có",
  93. bNo: "Không",
  94. bExit: "Hủy bỏ",
  95. msg: {
  96. required: "Trường dữ liệu bắt buộc có",
  97. number: "Hãy điền đúng số",
  98. minValue: "giá trị phải lớn hơn hoặc bằng với ",
  99. maxValue: "giá trị phải bé hơn hoặc bằng",
  100. email: "không phải là một email đúng",
  101. integer: "Hãy điền đúng số nguyên",
  102. date: "Hãy điền đúng ngày tháng",
  103. url: "không phải là URL. Khởi đầu bắt buộc là ('http://' hoặc 'https://')",
  104. nodefined: " chưa được định nghĩa!",
  105. novalue: " giá trị trả về bắt buộc phải có!",
  106. customarray: "Hàm nên trả về một mảng!",
  107. customfcheck: "Custom function should be present in case of custom checking!"
  108. }
  109. },
  110. view: {
  111. caption: "Xem bản ghi",
  112. bClose: "Đóng"
  113. },
  114. del: {
  115. caption: "Xóa",
  116. msg: "Xóa bản ghi đã chọn?",
  117. bSubmit: "Xóa",
  118. bCancel: "Hủy bỏ"
  119. },
  120. nav: {
  121. edittext: "",
  122. edittitle: "Sửa dòng đã chọn",
  123. addtext: "",
  124. addtitle: "Thêm mới 1 dòng",
  125. deltext: "",
  126. deltitle: "Xóa dòng đã chọn",
  127. searchtext: "",
  128. searchtitle: "Tìm bản ghi",
  129. refreshtext: "",
  130. refreshtitle: "Nạp lại lưới",
  131. alertcap: "Cảnh báo",
  132. alerttext: "Hãy chọn một dòng",
  133. viewtext: "",
  134. viewtitle: "Xem dòng đã chọn",
  135. savetext: "",
  136. savetitle: "Save row",
  137. canceltext: "",
  138. canceltitle: "Cancel row editing"
  139. },
  140. col: {
  141. caption: "Chọn cột",
  142. bSubmit: "OK",
  143. bCancel: "Hủy bỏ"
  144. },
  145. errors: {
  146. errcap: "Lỗi",
  147. nourl: "không url được đặt",
  148. norecords: "Không có bản ghi để xử lý",
  149. model: "Chiều dài của colNames <> colModel!"
  150. },
  151. formatter: {
  152. integer: { thousandsSeparator: ".", defaultValue: "0" },
  153. number: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: "0" },
  154. currency: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0" },
  155. date: {
  156. dayNames: [
  157. "CN", "T2", "T3", "T4", "T5", "T6", "T7",
  158. "Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"
  159. ],
  160. monthNames: [
  161. "Th1", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7", "Th8", "Th9", "Th10", "Th11", "Th12",
  162. "Tháng một", "Tháng hai", "Tháng ba", "Tháng tư", "Tháng năm", "Tháng sáu", "Tháng bảy", "Tháng tám", "Tháng chín", "Tháng mười", "Tháng mười một", "Tháng mười hai"
  163. ],
  164. AmPm: ["sáng", "chiều", "SÁNG", "CHIỀU"],
  165. S: function (j) {
  166. return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";
  167. },
  168. srcformat: "Y-m-d",
  169. newformat: "n/j/Y",
  170. masks: {
  171. // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
  172. // and see http://docs.jquery.com/UI/Datepicker/formatDate
  173. // and https://github.com/jquery/globalize#dates for alternative formats used frequently
  174. // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
  175. // information about date, time, numbers and currency formats used in different countries
  176. // one should just convert the information in PHP format
  177. // short date:
  178. // n - Numeric representation of a month, without leading zeros
  179. // j - Day of the month without leading zeros
  180. // Y - A full numeric representation of a year, 4 digits
  181. // example: 3/1/2012 which means 1 March 2012
  182. ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
  183. // long date:
  184. // l - A full textual representation of the day of the week
  185. // F - A full textual representation of a month
  186. // d - Day of the month, 2 digits with leading zeros
  187. // Y - A full numeric representation of a year, 4 digits
  188. LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
  189. // long date with long time:
  190. // l - A full textual representation of the day of the week
  191. // F - A full textual representation of a month
  192. // d - Day of the month, 2 digits with leading zeros
  193. // Y - A full numeric representation of a year, 4 digits
  194. // g - 12-hour format of an hour without leading zeros
  195. // i - Minutes with leading zeros
  196. // s - Seconds, with leading zeros
  197. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  198. FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
  199. // month day:
  200. // F - A full textual representation of a month
  201. // d - Day of the month, 2 digits with leading zeros
  202. MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
  203. // short time (without seconds)
  204. // g - 12-hour format of an hour without leading zeros
  205. // i - Minutes with leading zeros
  206. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  207. ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
  208. // long time (with seconds)
  209. // g - 12-hour format of an hour without leading zeros
  210. // i - Minutes with leading zeros
  211. // s - Seconds, with leading zeros
  212. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  213. LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
  214. // month with year
  215. // Y - A full numeric representation of a year, 4 digits
  216. // F - A full textual representation of a month
  217. YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
  218. }
  219. }
  220. }
  221. };
  222. $.jgrid = $.jgrid || {};
  223. $.extend(true, $.jgrid, {
  224. defaults: {
  225. locale: "vi"
  226. },
  227. locales: {
  228. // In general the property name is free, but it's recommended to use the names based on
  229. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  230. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  231. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  232. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  233. vi: $.extend({}, locInfo, { name: "Tiếng Việt", nameEnglish: "Vietnamese" }),
  234. "vi-VN": $.extend({}, locInfo, { name: "Tiếng Việt (Việt Nam)", nameEnglish: "Vietnamese (Vietnam)" })
  235. }
  236. });
  237. }));