grid.locale-cs.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. /**
  2. * @license jqGrid Czech Translation
  3. * Pavel Jirak pavel.jirak@jipas.cz
  4. * doplnil Thomas Wagner xwagne01@stud.fit.vutbr.cz
  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. isRTL: false,
  40. defaults: {
  41. recordtext: "Zobrazeno {0} - {1} z {2} záznamů",
  42. emptyrecords: "Nenalezeny žádné záznamy",
  43. loadtext: "Načítám...",
  44. pgtext: "Strana {0} z {1}",
  45. pgfirst: "First Page",
  46. pglast: "Last Page",
  47. pgnext: "Next Page",
  48. pgprev: "Previous Page",
  49. pgrecs: "Records per Page",
  50. showhide: "Toggle Expand Collapse Grid",
  51. savetext: "Ukládání..."
  52. },
  53. search: {
  54. caption: "Vyhledávám...",
  55. Find: "Hledat",
  56. Reset: "Reset",
  57. odata: [
  58. { oper: "eq", text: "rovno" },
  59. { oper: "ne", text: "nerovno" },
  60. { oper: "lt", text: "menší" },
  61. { oper: "le", text: "menší nebo rovno" },
  62. { oper: "gt", text: "větší" },
  63. { oper: "ge", text: "větší nebo rovno" },
  64. { oper: "bw", text: "začíná s" },
  65. { oper: "bn", text: "nezačíná s" },
  66. { oper: "in", text: "je v" },
  67. { oper: "ni", text: "není v" },
  68. { oper: "ew", text: "končí s" },
  69. { oper: "en", text: "nekončí s" },
  70. { oper: "cn", text: "obsahuje" },
  71. { oper: "nc", text: "neobsahuje" },
  72. { oper: "nu", text: "is null" },
  73. { oper: "nn", text: "is not null" }
  74. ],
  75. groupOps: [
  76. { op: "AND", text: "všech" },
  77. { op: "OR", text: "některého z" }
  78. ],
  79. addGroupTitle: "Add subgroup",
  80. deleteGroupTitle: "Delete group",
  81. addRuleTitle: "Add rule",
  82. deleteRuleTitle: "Delete rule",
  83. operandTitle: "Click to select search operation.",
  84. resetTitle: "Reset Search Value"
  85. },
  86. edit: {
  87. addCaption: "Přidat záznam",
  88. editCaption: "Editace záznamu",
  89. bSubmit: "Uložit",
  90. bCancel: "Storno",
  91. bClose: "Zavřít",
  92. saveData: "Data byla změněna! Uložit změny?",
  93. bYes: "Ano",
  94. bNo: "Ne",
  95. bExit: "Zrušit",
  96. msg: {
  97. required: "Pole je vyžadováno",
  98. number: "Prosím, vložte validní číslo",
  99. minValue: "hodnota musí být větší než nebo rovná ",
  100. maxValue: "hodnota musí být menší než nebo rovná ",
  101. email: "není validní e-mail",
  102. integer: "Prosím, vložte celé číslo",
  103. date: "Prosím, vložte validní datum",
  104. url: "není platnou URL. Vyžadován prefix ('http://' or 'https://')",
  105. nodefined: " není definován!",
  106. novalue: " je vyžadována návratová hodnota!",
  107. customarray: "Custom function mělá vrátit pole!",
  108. customfcheck: "Custom function by měla být přítomna v případě custom checking!"
  109. }
  110. },
  111. view: {
  112. caption: "Zobrazit záznam",
  113. bClose: "Zavřít"
  114. },
  115. del: {
  116. caption: "Smazat",
  117. msg: "Smazat vybraný(é) záznam(y)?",
  118. bSubmit: "Smazat",
  119. bCancel: "Storno"
  120. },
  121. nav: {
  122. edittext: "",
  123. edittitle: "Editovat vybraný řádek",
  124. addtext: " ",
  125. addtitle: "Přidat nový řádek",
  126. deltext: "",
  127. deltitle: "Smazat vybraný záznam ",
  128. searchtext: "",
  129. searchtitle: "Najít záznamy",
  130. refreshtext: "",
  131. refreshtitle: "Obnovit tabulku",
  132. alertcap: "Varování",
  133. alerttext: "Prosím, vyberte řádek",
  134. viewtext: "",
  135. viewtitle: "Zobrazit vybraný řádek",
  136. savetext: "",
  137. savetitle: "Save row",
  138. canceltext: "",
  139. canceltitle: "Cancel row editing"
  140. },
  141. col: {
  142. caption: "Zobrazit/Skrýt sloupce",
  143. bSubmit: "Uložit",
  144. bCancel: "Storno"
  145. },
  146. errors: {
  147. errcap: "Chyba",
  148. nourl: "Není nastavena url",
  149. norecords: "Žádné záznamy ke zpracování",
  150. model: "Délka colNames <> colModel!"
  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. "Ne", "Po", "Út", "St", "Čt", "Pá", "So",
  159. "Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"
  160. ],
  161. monthNames: [
  162. "Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro",
  163. "Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"
  164. ],
  165. AmPm: ["do", "od", "DO", "OD"],
  166. S: function (j) {return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";},
  167. srcformat: "Y-m-d",
  168. newformat: "d/m/Y",
  169. masks: {
  170. ShortDate: "n/j/Y",
  171. LongDate: "l, F d, Y",
  172. FullDateTime: "l, F d, Y g:i:s A",
  173. MonthDay: "F d",
  174. ShortTime: "g:i A",
  175. LongTime: "g:i:s A",
  176. YearMonth: "F, Y"
  177. }
  178. }
  179. }
  180. };
  181. $.jgrid = $.jgrid || {};
  182. $.extend(true, $.jgrid, {
  183. defaults: {
  184. locale: "cs"
  185. },
  186. locales: {
  187. // In general the property name is free, but it's recommended to use the names based on
  188. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  189. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  190. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  191. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  192. cs: $.extend({}, locInfo, { name: "čeština", nameEnglish: "Czech" }),
  193. "cs-CZ": $.extend({}, locInfo, { name: "čeština (Česká republika)", nameEnglish: "Czech (Czech Republic)" })
  194. }
  195. });
  196. }));