grid.locale-it.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /**
  2. * jqGrid Italian Translation
  3. **/
  4. /*jslint white: true */
  5. /*global jQuery, module, require */
  6. (function (factory) {
  7. "use strict";
  8. if (typeof define === "function" && define.amd) {
  9. // AMD. Register as an anonymous module.
  10. define(["jquery"], factory);
  11. } else if (typeof module === "object" && module.exports) {
  12. // Node/CommonJS
  13. module.exports = function (root, $) {
  14. if ($ === undefined) {
  15. // require("jquery") returns a factory that requires window to
  16. // build a jQuery instance, we normalize how we use modules
  17. // that require this pattern but the window provided is a noop
  18. // if it's defined (how jquery works)
  19. $ = typeof window !== "undefined" ?
  20. require("jquery") :
  21. require("jquery")(root || window);
  22. }
  23. factory($);
  24. return $;
  25. };
  26. } else {
  27. // Browser globals
  28. factory(jQuery);
  29. }
  30. }(function ($) {
  31. "use strict";
  32. var locInfo = {
  33. isRTL: false,
  34. defaults: {
  35. recordtext: "Visualizzati {0} - {1} di {2}",
  36. emptyrecords: "Nessun record da visualizzare",
  37. loadtext: "Caricamento...",
  38. pgtext: "Pagina {0} di {1}",
  39. pgfirst: "First Page",
  40. pglast: "Last Page",
  41. pgnext: "Next Page",
  42. pgprev: "Previous Page",
  43. pgrecs: "Records per Page",
  44. showhide: "Toggle Expand Collapse Grid",
  45. savetext: "Salvataggio in corso..."
  46. },
  47. search: {
  48. caption: "Ricerca...",
  49. Find: "Cerca",
  50. Reset: "Pulisci",
  51. odata: [
  52. { oper: "eq", text: "uguale" },
  53. { oper: "ne", text: "diverso" },
  54. { oper: "lt", text: "minore" },
  55. { oper: "le", text: "minore o uguale" },
  56. { oper: "gt", text: "maggiore" },
  57. { oper: "ge", text: "maggiore o uguale" },
  58. { oper: "bw", text: "inizia con" },
  59. { oper: "bn", text: "non inizia con" },
  60. { oper: "in", text: "in" },
  61. { oper: "ni", text: "non in" },
  62. { oper: "ew", text: "termina con" },
  63. { oper: "en", text: "non termina con" },
  64. { oper: "cn", text: "contiene" },
  65. { oper: "nc", text: "non contiene" },
  66. { oper: "nu", text: "is null" },
  67. { oper: "nn", text: "is not null" }
  68. ],
  69. groupOps: [
  70. { op: "AND", text: "tutto" },
  71. { op: "OR", text: "almeno uno" }
  72. ],
  73. addGroupTitle: "Add subgroup",
  74. deleteGroupTitle: "Delete group",
  75. addRuleTitle: "Add rule",
  76. deleteRuleTitle: "Delete rule",
  77. operandTitle: "Click to select search operation.",
  78. resetTitle: "Reset Search Value"
  79. },
  80. edit: {
  81. addCaption: "Aggiungi Record",
  82. editCaption: "Modifica Record",
  83. bSubmit: "Invia",
  84. bCancel: "Chiudi",
  85. bClose: "Chiudi",
  86. saveData: "Alcuni dati modificati! Salvare i cambiamenti?",
  87. bYes: "Si",
  88. bNo: "No",
  89. bExit: "Esci",
  90. msg: {
  91. required: "Campo richiesto",
  92. number: "Per favore, inserisci un valore valido",
  93. minValue: "il valore deve essere maggiore o uguale a ",
  94. maxValue: "il valore deve essere minore o uguale a",
  95. email: "e-mail non corretta",
  96. integer: "Per favore, inserisci un numero intero valido",
  97. date: "Per favore, inserisci una data valida",
  98. url: "URL non valido. Prefisso richiesto ('http://' or 'https://')",
  99. nodefined: " non è definito!",
  100. novalue: " valore di ritorno richiesto!",
  101. customarray: "La function custon deve tornare un array!",
  102. customfcheck: "La function custom deve esistere per il custom checking!"
  103. }
  104. },
  105. view: {
  106. caption: "Visualizzazione Record",
  107. bClose: "Chiudi"
  108. },
  109. del: {
  110. caption: "Cancella",
  111. msg: "Cancellare record selezionato/i?",
  112. bSubmit: "Cancella",
  113. bCancel: "Annulla"
  114. },
  115. nav: {
  116. edittext: "",
  117. edittitle: "Modifica record selezionato",
  118. addtext: "",
  119. addtitle: "Aggiungi nuovo record",
  120. deltext: "",
  121. deltitle: "Cancella record selezionato",
  122. searchtext: "",
  123. searchtitle: "Ricerca record",
  124. refreshtext: "",
  125. refreshtitle: "Aggiorna griglia",
  126. alertcap: "Attenzione",
  127. alerttext: "Per favore, seleziona un record",
  128. viewtext: "",
  129. viewtitle: "Visualizza riga selezionata",
  130. savetext: "",
  131. savetitle: "Salva riga",
  132. canceltext: "",
  133. canceltitle: "Annulla modifica riga"
  134. },
  135. col: {
  136. caption: "Mostra/Nascondi Colonne",
  137. bSubmit: "Invia",
  138. bCancel: "Annulla"
  139. },
  140. errors: {
  141. errcap: "Errore",
  142. nourl: "Url non settata",
  143. norecords: "Nessun record da elaborare",
  144. model: "Lunghezza di colNames <> colModel!"
  145. },
  146. formatter: {
  147. integer: { thousandsSeparator: " ", defaultValue: "0" },
  148. number: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0,00" },
  149. currency: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0,00" },
  150. date: {
  151. dayNames: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab", "Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
  152. monthNames: [
  153. "Gen", "Feb", "Mar", "Apr", "Mag", "Gui", "Lug", "Ago", "Set", "Ott", "Nov", "Dic",
  154. "Genneio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Movembre", "Dicembre"],
  155. AmPm: ["am", "pm", "AM", "PM"],
  156. S: function (b) {
  157. return b < 11 || b > 13 ? ["st", "nd", "rd", "th"][Math.min((b - 1) % 10, 3)] : "th";
  158. },
  159. srcformat: "Y-m-d",
  160. newformat: "d/m/Y",
  161. masks: {
  162. ShortDate: "n/j/Y",
  163. LongDate: "l, F d, Y",
  164. FullDateTime: "l, F d, Y g:i:s A",
  165. MonthDay: "F d",
  166. ShortTime: "g:i A",
  167. LongTime: "g:i:s A",
  168. YearMonth: "F, Y"
  169. }
  170. }
  171. }
  172. };
  173. $.jgrid = $.jgrid || {};
  174. $.extend(true, $.jgrid, {
  175. defaults: {
  176. locale: "it"
  177. },
  178. locales: {
  179. // In general the property name is free, but it's recommended to use the names based on
  180. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  181. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  182. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  183. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  184. it: $.extend({}, locInfo, { name: "italiano", nameEnglish: "Italian" }),
  185. "it-IT": $.extend({}, locInfo, { name: "italiano (Italia)", nameEnglish: "Italian (Italy)" })
  186. }
  187. });
  188. }));