grid.locale-pl.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /**
  2. * @license jqGrid Polish Translation
  3. * Łukasz Schab lukasz@freetree.pl
  4. * http://FreeTree.pl
  5. *
  6. * Updated names, abbreviations, currency and date/time formats for Polish norms (also corresponding with CLDR v21.0.1 --> http://cldr.unicode.org/index)
  7. * Tomasz Pęczek tpeczek@gmail.com
  8. * http://tpeczek.blogspot.com; http://tpeczek.codeplex.com
  9. *
  10. * 22-01-2015: Updated locale strings
  11. * Robert 'Wooya' Gaudyn <wogaew@wp.pl>
  12. *
  13. * Dual licensed under the MIT and GPL licenses:
  14. * http://www.opensource.org/licenses/mit-license.php
  15. * http://www.gnu.org/licenses/gpl.html
  16. **/
  17. /*jslint white: true */
  18. /*global jQuery, module, require */
  19. (function (factory) {
  20. "use strict";
  21. if (typeof define === "function" && define.amd) {
  22. // AMD. Register as an anonymous module.
  23. define(["jquery"], factory);
  24. } else if (typeof module === "object" && module.exports) {
  25. // Node/CommonJS
  26. module.exports = function (root, $) {
  27. if ($ === undefined) {
  28. // require("jquery") returns a factory that requires window to
  29. // build a jQuery instance, we normalize how we use modules
  30. // that require this pattern but the window provided is a noop
  31. // if it's defined (how jquery works)
  32. $ = typeof window !== "undefined" ?
  33. require("jquery") :
  34. require("jquery")(root || window);
  35. }
  36. factory($);
  37. return $;
  38. };
  39. } else {
  40. // Browser globals
  41. factory(jQuery);
  42. }
  43. }(function ($) {
  44. "use strict";
  45. var locInfo = {
  46. isRTL: false,
  47. defaults: {
  48. recordtext: "Pokaż {0} - {1} z {2}",
  49. emptyrecords: "Brak rekordów do pokazania",
  50. loadtext: "Ładowanie...",
  51. pgtext: "Strona {0} z {1}",
  52. pgfirst: "Pierwsza strona",
  53. pglast: "Ostatnia strona",
  54. pgnext: "Następna strona",
  55. pgprev: "Poprzednia strona",
  56. pgrecs: "Rekordów na stronę",
  57. showhide: "Przełącz zwinięcie/rozwinięcie tabeli",
  58. savetext: "Trwa zapisywanie..."
  59. },
  60. search: {
  61. caption: "Wyszukiwanie...",
  62. Find: "Szukaj",
  63. Reset: "Czyść",
  64. odata: [
  65. { oper: "eq", text: "dokładnie" },
  66. { oper: "ne", text: "różne od" },
  67. { oper: "lt", text: "mniejsze od" },
  68. { oper: "le", text: "mniejsze lub równe" },
  69. { oper: "gt", text: "większe od" },
  70. { oper: "ge", text: "większe lub równe" },
  71. { oper: "bw", text: "zaczyna się od" },
  72. { oper: "bn", text: "nie zaczyna się od" },
  73. { oper: "in", text: "jest w" },
  74. { oper: "ni", text: "nie jest w" },
  75. { oper: "ew", text: "kończy się na" },
  76. { oper: "en", text: "nie kończy się na" },
  77. { oper: "cn", text: "zawiera" },
  78. { oper: "nc", text: "nie zawiera" },
  79. { oper: "nu", text: "jest null" },
  80. { oper: "nn", text: "nie jest null" }
  81. ],
  82. groupOps: [
  83. { op: "AND", text: "oraz" },
  84. { op: "OR", text: "lub" }
  85. ],
  86. addGroupTitle: "Dodaj podgrupę",
  87. deleteGroupTitle: "Usuń grupę",
  88. addRuleTitle: "Dodaj regułę",
  89. deleteRuleTitle: "Usuń regułę",
  90. operandTitle: "Kliknij, aby wybrać operację wyszukiwania.",
  91. resetTitle: "Zresetuj wartość wyszukiwania"
  92. },
  93. edit: {
  94. addCaption: "Dodaj rekord",
  95. editCaption: "Edytuj rekord",
  96. bSubmit: "Zapisz",
  97. bCancel: "Anuluj",
  98. bClose: "Zamknij",
  99. saveData: "Dane zostały zmienione! Zapisać zmiany?",
  100. bYes: "Tak",
  101. bNo: "Nie",
  102. bExit: "Anuluj",
  103. msg: {
  104. required: "Pole jest wymagane",
  105. number: "Proszę wpisać poprawną liczbę",
  106. minValue: "Wartość musi być większa lub równa od",
  107. maxValue: "Wartość musi być mniejsza lub równa od",
  108. email: "nie jest poprawnym adresem e-mail",
  109. integer: "Proszę wpisać poprawną liczbę",
  110. date: "Proszę podaj poprawną datę",
  111. url: "jest niewłaściwym adresem URL. Pamiętaj o prefiksie ('http://' lub 'https://')",
  112. nodefined: " niezdefiniowane!",
  113. novalue: " wymagana jest wartość zwracana!",
  114. customarray: "Funkcja niestandardowa powinna zwracać tablicę!",
  115. customfcheck: "Funkcja niestandardowa powinna być obecna w przypadku niestandardowego sprawdzania!"
  116. }
  117. },
  118. view: {
  119. caption: "Pokaż rekord",
  120. bClose: "Zamknij"
  121. },
  122. del: {
  123. caption: "Usuń",
  124. msg: "Czy usunąć wybrany rekord(y)?",
  125. bSubmit: "Usuń",
  126. bCancel: "Anuluj"
  127. },
  128. nav: {
  129. edittext: "",
  130. edittitle: "Edytuj wybrany wiersz",
  131. addtext: "",
  132. addtitle: "Dodaj nowy wiersz",
  133. deltext: "",
  134. deltitle: "Usuń wybrany wiersz",
  135. searchtext: "",
  136. searchtitle: "Wyszukaj rekord",
  137. refreshtext: "",
  138. refreshtitle: "Przeładuj",
  139. alertcap: "Uwaga",
  140. alerttext: "Proszę wybrać wiersz",
  141. viewtext: "",
  142. viewtitle: "Pokaż wybrany wiersz",
  143. savetext: "",
  144. savetitle: "Zapisz wiersz",
  145. canceltext: "",
  146. canceltitle: "Anuluj edycję wiersza"
  147. },
  148. col: {
  149. caption: "Pokaż/Ukryj kolumny",
  150. bSubmit: "Zatwierdź",
  151. bCancel: "Anuluj"
  152. },
  153. errors: {
  154. errcap: "Błąd",
  155. nourl: "Brak adresu url",
  156. norecords: "Brak danych",
  157. model: "Długość colNames <> colModel!"
  158. },
  159. formatter: {
  160. integer: { thousandsSeparator: " ", defaultValue: "0" },
  161. number: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0,00" },
  162. currency: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix: " zł", defaultValue: "0,00" },
  163. date: {
  164. dayNames: [
  165. "niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob.",
  166. "niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"
  167. ],
  168. monthNames: [
  169. "sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru",
  170. "styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"
  171. ],
  172. AmPm: ["", "", "", ""],
  173. S: function () { return ""; },
  174. srcformat: "Y-m-d",
  175. newformat: "d.m.Y",
  176. masks: {
  177. ShortDate: "d.m.y",
  178. LongDate: "l, j F Y",
  179. FullDateTime: "l, j F Y H:i:s",
  180. MonthDay: "j F",
  181. ShortTime: "H:i",
  182. LongTime: "H:i:s",
  183. YearMonth: "F Y"
  184. }
  185. }
  186. }
  187. };
  188. $.jgrid = $.jgrid || {};
  189. $.extend(true, $.jgrid, {
  190. defaults: {
  191. locale: "pl"
  192. },
  193. locales: {
  194. // In general the property name is free, but it's recommended to use the names based on
  195. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  196. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  197. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  198. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  199. pl: $.extend({}, locInfo, { name: "polski", nameEnglish: "Polish" }),
  200. "pl-PL": $.extend({}, locInfo, { name: "polski (Polska)", nameEnglish: "Polish (Poland)" })
  201. }
  202. });
  203. }));