grid.locale-hr.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /**
  2. * @license jqGrid Croatian Translation
  3. * created by msajko@gmail.com
  4. * modified by Nimesin info@nimesin.com
  5. *
  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. isRTL: false,
  40. defaults: {
  41. recordtext: "Pregled {0} - {1} od {2}",
  42. emptyrecords: "Nema zapisa",
  43. loadtext: "Učitavam...",
  44. pgtext: "Stranica {0} od {1}",
  45. pgfirst: "Prva stranica",
  46. pglast: "Zadnja stranica",
  47. pgnext: "Slijedeća stranica",
  48. pgprev: "Prethodna stranica",
  49. pgrecs: "zapisa po stranici",
  50. showhide: "Promijeni širenje/skupljanje grida",
  51. savetext: "Spremanje..."
  52. },
  53. search: {
  54. caption: "Traži...",
  55. Find: "Pretraživanje",
  56. Reset: "Poništi",
  57. odata: [
  58. { oper: "eq", text: "jednak" },
  59. { oper: "ne", text: "nije jednak" },
  60. { oper: "lt", text: "manje" },
  61. { oper: "le", text: "manje ili jednako" },
  62. { oper: "gt", text: "veće" },
  63. { oper: "ge", text: "veće ili jednako" },
  64. { oper: "bw", text: "počinje sa" },
  65. { oper: "bn", text: "ne počinje sa " },
  66. { oper: "in", text: "je u" },
  67. { oper: "ni", text: "nije u" },
  68. { oper: "ew", text: "završava sa" },
  69. { oper: "en", text: "ne završava sa" },
  70. { oper: "cn", text: "sadrži" },
  71. { oper: "nc", text: "ne sadrži" },
  72. { oper: "nu", text: "je prazno" },
  73. { oper: "nn", text: "nije prazno" }
  74. ],
  75. groupOps: [
  76. { op: "AND", text: "sve" },
  77. { op: "OR", text: "bilo koji" }
  78. ],
  79. addGroupTitle: "Dodaj podgrupu",
  80. deleteGroupTitle: "Obriši grupu",
  81. addRuleTitle: "Dodaj pravilo",
  82. deleteRuleTitle: "Obriši pravilo",
  83. operandTitle: "Pritisnite za promjenu operacije traženja.",
  84. resetTitle: "Vrati vrijednosti na zadane"
  85. },
  86. edit: {
  87. addCaption: "Dodaj zapis",
  88. editCaption: "Promijeni zapis",
  89. bSubmit: "Preuzmi",
  90. bCancel: "Odustani",
  91. bClose: "Zatvori",
  92. saveData: "Podaci su promijenjeni! Preuzmi promjene?",
  93. bYes: "Da",
  94. bNo: "Ne",
  95. bExit: "Odustani",
  96. msg: {
  97. required: "Polje je obavezno",
  98. number: "Molim, unesite ispravan broj",
  99. minValue: "Vrijednost mora biti veća ili identična ",
  100. maxValue: "Vrijednost mora biti manja ili identična",
  101. email: "neispravan e-mail",
  102. integer: "Molim, unijeti ispravan cijeli broj (integer)",
  103. date: "Molim, unijeti ispravan datum ",
  104. url: "neispravan URL. Prefiks je obavezan ('http://' or 'https://')",
  105. nodefined: " nije definiran!",
  106. novalue: " zahtjevan podatak je obavezan!",
  107. customarray: "Opcionalna funkcija trebala bi bili polje (array)!",
  108. customfcheck: "Kod korisničke provjere, korisnička funkcija treba biti prisutna!"
  109. }
  110. },
  111. view: {
  112. caption: "Otvori zapis",
  113. bClose: "Zatvori"
  114. },
  115. del: {
  116. caption: "Obriši",
  117. msg: "Obriši označen zapis ili više njih?",
  118. bSubmit: "Obriši",
  119. bCancel: "Odustani"
  120. },
  121. nav: {
  122. edittext: "",
  123. edittitle: "Promijeni obilježeni red",
  124. addtext: "",
  125. addtitle: "Dodaj novi red",
  126. deltext: "",
  127. deltitle: "Obriši obilježeni red",
  128. searchtext: "",
  129. searchtitle: "Potraži zapise",
  130. refreshtext: "",
  131. refreshtitle: "Ponovo preuzmi podatke",
  132. alertcap: "Upozorenje",
  133. alerttext: "Molim, odaberi red",
  134. viewtext: "",
  135. viewtitle: "Pregled obilježenog reda",
  136. savetext: "",
  137. savetitle: "Spremi red",
  138. canceltext: "",
  139. canceltitle: "Prekini promjenu reda"
  140. },
  141. col: {
  142. caption: "Obilježi kolonu",
  143. bSubmit: "U redu",
  144. bCancel: "Odustani"
  145. },
  146. errors: {
  147. errcap: "Greška",
  148. nourl: "Nedostaje URL",
  149. norecords: "Bez zapisa za obradu",
  150. model: "colNames i colModel imaju različitu duljinu!"
  151. },
  152. formatter: {
  153. integer: { thousandsSeparator: ".", defaultValue: "0" },
  154. number: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: "0,00" },
  155. currency: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0,00" },
  156. date: {
  157. dayNames: [
  158. "Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub",
  159. "Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"
  160. ],
  161. monthNames: [
  162. "Sij", "Velj", "Ožu", "Tra", "Svi", "Lip", "Srp", "Kol", "Ruj", "Lis", "Stu", "Pro",
  163. "Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"
  164. ],
  165. AmPm: ["am", "pm", "AM", "PM"],
  166. S: function () { return ""; },
  167. srcformat: "Y-m-d",
  168. newformat: "d.m.Y.",
  169. masks: {
  170. // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
  171. // and see http://docs.jquery.com/UI/Datepicker/formatDate
  172. // and https://github.com/jquery/globalize#dates for alternative formats used frequently
  173. // short date:
  174. // d - Day of the month, 2 digits with leading zeros
  175. // m - Numeric representation of a month, with leading zeros
  176. // Y - A full numeric representation of a year, 4 digits
  177. ShortDate: "d.m.Y.", // in jQuery UI Datepicker: "dd.mm.yy."
  178. // long date:
  179. // l - A full textual representation of the day of the week
  180. // j - Day of the month without leading zeros
  181. // F - A full textual representation of a month
  182. // Y - A full numeric representation of a year, 4 digits
  183. LongDate: "l, j. F Y", // in jQuery UI Datepicker: "dddd, d. MMMM yyyy"
  184. // long date with long time:
  185. // l - A full textual representation of the day of the week
  186. // j - Day of the month without leading zeros
  187. // F - A full textual representation of a month
  188. // Y - A full numeric representation of a year, 4 digits
  189. // H - 24-hour format of an hour with leading zeros
  190. // i - Minutes with leading zeros
  191. // s - Seconds, with leading zeros
  192. FullDateTime: "l, j. F Y H:i:s", // in jQuery UI Datepicker: "dddd, d. MMMM yyyy HH:mm:ss"
  193. // month day:
  194. // d - Day of the month, 2 digits with leading zeros
  195. // F - A full textual representation of a month
  196. MonthDay: "d F", // in jQuery UI Datepicker: "dd MMMM"
  197. // short time (without seconds)
  198. // H - 24-hour format of an hour with leading zeros
  199. // i - Minutes with leading zeros
  200. ShortTime: "H:i", // in jQuery UI Datepicker: "HH:mm"
  201. // long time (with seconds)
  202. // H - 24-hour format of an hour with leading zeros
  203. // i - Minutes with leading zeros
  204. // s - Seconds, with leading zeros
  205. LongTime: "H:i:s", // in jQuery UI Datepicker: "HH:mm:ss"
  206. // month with year
  207. // F - A full textual representation of a month
  208. // Y - A full numeric representation of a year, 4 digits
  209. YearMonth: "F Y" // in jQuery UI Datepicker: "MMMM yyyy"
  210. }
  211. }
  212. }
  213. };
  214. $.jgrid = $.jgrid || {};
  215. $.extend(true, $.jgrid, {
  216. defaults: {
  217. locale: "hr"
  218. },
  219. locales: {
  220. // In general the property name is free, but it's recommended to use the names based on
  221. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  222. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  223. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  224. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  225. hr: $.extend({}, locInfo, { name: "hrvatski", nameEnglish: "Croatian" }),
  226. "hr-HR": $.extend({}, locInfo, { name: "hrvatski (Hrvatska)", nameEnglish: "Croatian (Croatia)" })
  227. }
  228. });
  229. }));