grid.locale-ca.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /**
  2. * @license jqGrid Catalan Translation
  3. *
  4. * Traducció jqGrid en Català per Faserline, S.L.
  5. * http://www.faserline.com
  6. *
  7. * Traducció corregida i ampliada per Marc lobato
  8. * http://www.navigatecms.com
  9. *
  10. * Dual licensed under the MIT and GPL licenses:
  11. * http://www.opensource.org/licenses/mit-license.php
  12. * http://www.gnu.org/licenses/gpl.html
  13. **/
  14. /*jslint white: true */
  15. /*global jQuery, module, require */
  16. (function (factory) {
  17. "use strict";
  18. if (typeof define === "function" && define.amd) {
  19. // AMD. Register as an anonymous module.
  20. define(["jquery"], factory);
  21. } else if (typeof module === "object" && module.exports) {
  22. // Node/CommonJS
  23. module.exports = function (root, $) {
  24. if ($ === undefined) {
  25. // require("jquery") returns a factory that requires window to
  26. // build a jQuery instance, we normalize how we use modules
  27. // that require this pattern but the window provided is a noop
  28. // if it's defined (how jquery works)
  29. $ = typeof window !== "undefined" ?
  30. require("jquery") :
  31. require("jquery")(root || window);
  32. }
  33. factory($);
  34. return $;
  35. };
  36. } else {
  37. // Browser globals
  38. factory(jQuery);
  39. }
  40. }(function ($) {
  41. "use strict";
  42. var locInfo = {
  43. isRTL: false,
  44. defaults: {
  45. recordtext: "Mostrant {0} - {1} de {2}",
  46. emptyrecords: "Sense registres per mostrar",
  47. loadtext: "Carregant...",
  48. pgtext: "Pàgina {0} de {1}",
  49. pgfirst: "Primera pàgina",
  50. pglast: "Última pàgina",
  51. pgnext: "Pàgina següent",
  52. pgprev: "Pàgina anterior",
  53. pgrecs: "Registres per pàgina",
  54. showhide: "Alternar expandir/col·lapsar la taula",
  55. savetext: "S'està desant..."
  56. },
  57. search: {
  58. caption: "Cerca...",
  59. Find: "Cercar",
  60. Reset: "Buidar",
  61. odata: [
  62. { oper: "eq", text: "igual" },
  63. { oper: "ne", text: "no igual" },
  64. { oper: "lt", text: "menor que" },
  65. { oper: "le", text: "menor o igual" },
  66. { oper: "gt", text: "major que" },
  67. { oper: "ge", text: "major o igual" },
  68. { oper: "bw", text: "comença amb" },
  69. { oper: "bn", text: "no comença amb" },
  70. { oper: "in", text: "està entre" },
  71. { oper: "ni", text: "no està entre" },
  72. { oper: "ew", text: "acaba amb" },
  73. { oper: "en", text: "no acaba amb" },
  74. { oper: "cn", text: "conté" },
  75. { oper: "nc", text: "no conté" },
  76. { oper: "nu", text: "és nul" },
  77. { oper: "nn", text: "no és nul" }
  78. ],
  79. groupOps: [
  80. { op: "AND", text: "tot" },
  81. { op: "OR", text: "qualsevol" }
  82. ],
  83. addGroupTitle: "Crear subgrup",
  84. deleteGroupTitle: "Eliminar grup",
  85. addRuleTitle: "Crear regla",
  86. deleteRuleTitle: "Eliminar regla",
  87. operandTitle: "Clic per escollir la operació de cerca.",
  88. resetTitle: "Reiniciar valors de la cerca"
  89. },
  90. edit: {
  91. addCaption: "Afegir registre",
  92. editCaption: "Modificar registre",
  93. bSubmit: "Guardar",
  94. bCancel: "Cancelar",
  95. bClose: "Tancar",
  96. saveData: "Les dades han canviat. Guardar canvis?",
  97. bYes: "Sí",
  98. bNo: "No",
  99. bExit: "Cancel·lar",
  100. msg: {
  101. required: "Camp obligatori",
  102. number: "Introdueixi un nombre",
  103. minValue: "El valor ha de ser major o igual que ",
  104. maxValue: "El valor ha de ser menor o igual a ",
  105. email: "no és una direcció de correu vàlida",
  106. integer: "Introdueixi un valor enter",
  107. date: "Introdueixi una data correcta ",
  108. url: "no és una URL vàlida. Prefix requerit ('http://' o 'https://')",
  109. nodefined: " no està definit!",
  110. novalue: " es requereix un valor de retorn!",
  111. customarray: "La funció personalitzada hauria de retornar una array!",
  112. customfcheck: "La funció personalitzada hauria d'estar present si es fa una comprovació personalitzada!"
  113. }
  114. },
  115. view: {
  116. caption: "Veure registre",
  117. bClose: "Tancar"
  118. },
  119. del: {
  120. caption: "Eliminar",
  121. msg: "¿Desitja eliminar els registres seleccionats?",
  122. bSubmit: "Eliminar",
  123. bCancel: "Cancel·lar"
  124. },
  125. nav: {
  126. edittext: "",
  127. edittitle: "Modificar fila seleccionada",
  128. addtext: "",
  129. addtitle: "Agregar nova fila",
  130. deltext: "",
  131. deltitle: "Eliminar fila seleccionada",
  132. searchtext: "",
  133. searchtitle: "Cercar informació",
  134. refreshtext: "",
  135. refreshtitle: "Refrescar taula",
  136. alertcap: "Avís",
  137. alerttext: "Seleccioni una fila",
  138. viewtext: "",
  139. viewtitle: "Veure fila seleccionada",
  140. savetext: "",
  141. savetitle: "Guardar fila",
  142. canceltext: "",
  143. canceltitle: "Cancel·lar edició de la fila"
  144. },
  145. // setcolumns module
  146. col: {
  147. caption: "Mostrar/ocultar columnes",
  148. bSubmit: "Enviar",
  149. bCancel: "Cancelar"
  150. },
  151. errors: {
  152. errcap: "Error",
  153. nourl: "No s'ha especificat una URL",
  154. norecords: "No hi ha dades per processar",
  155. model: "Les columnes de noms són diferents de les columnes del model"
  156. },
  157. formatter: {
  158. integer: { thousandsSeparator: ".", defaultValue: "0" },
  159. number: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: "0,00" },
  160. currency: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0,00" },
  161. date: {
  162. dayNames: [
  163. "Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds",
  164. "Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"
  165. ],
  166. monthNames: [
  167. "Gen", "Febr", "Març", "Abr", "Maig", "Juny", "Jul", "Ag", "Set", "Oct", "Nov", "Des",
  168. "Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"
  169. ],
  170. AmPm: ["am", "pm", "AM", "PM"],
  171. S: function (j) {
  172. return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";
  173. },
  174. srcformat: "Y-m-d",
  175. newformat: "d-m-Y",
  176. masks: {
  177. ShortDate: "n/j/Y",
  178. LongDate: "l, F d, Y",
  179. FullDateTime: "l, F d, Y g:i:s A",
  180. MonthDay: "F d",
  181. ShortTime: "g:i A",
  182. LongTime: "g:i:s A",
  183. YearMonth: "F, Y"
  184. }
  185. }
  186. }
  187. };
  188. $.jgrid = $.jgrid || {};
  189. $.extend(true, $.jgrid, {
  190. defaults: {
  191. locale: "ca"
  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. ca: $.extend({}, locInfo, { name: "català", nameEnglish: "Catalan" }),
  200. "ca-ES": $.extend({}, locInfo, { name: "català (català)", nameEnglish: "Catalan (Catalan)" })
  201. }
  202. });
  203. }));