grid.locale-es.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /**
  2. * @license jqGrid Spanish Translation
  3. * Traduccion jqGrid en Español por Yamil Bracho
  4. *
  5. * Traduccion corregida y ampliada por Faserline, S.L.
  6. * http://www.faserline.com
  7. *
  8. * Traducción corregida y ampliada por Marc lobato
  9. * http://www.navigatecms.com
  10. *
  11. * Dual licensed under the MIT and GPL licenses:
  12. * http://www.opensource.org/licenses/mit-license.php
  13. * http://www.gnu.org/licenses/gpl.html
  14. **/
  15. /*jslint white: true */
  16. /*global jQuery, module, require */
  17. (function (factory) {
  18. "use strict";
  19. if (typeof define === "function" && define.amd) {
  20. // AMD. Register as an anonymous module.
  21. define(["jquery"], factory);
  22. } else if (typeof module === "object" && module.exports) {
  23. // Node/CommonJS
  24. module.exports = function (root, $) {
  25. if ($ === undefined) {
  26. // require("jquery") returns a factory that requires window to
  27. // build a jQuery instance, we normalize how we use modules
  28. // that require this pattern but the window provided is a noop
  29. // if it's defined (how jquery works)
  30. $ = typeof window !== "undefined" ?
  31. require("jquery") :
  32. require("jquery")(root || window);
  33. }
  34. factory($);
  35. return $;
  36. };
  37. } else {
  38. // Browser globals
  39. factory(jQuery);
  40. }
  41. }(function ($) {
  42. "use strict";
  43. var locInfo = {
  44. isRTL: false,
  45. defaults: {
  46. recordtext: "Mostrando {0} - {1} de {2}",
  47. emptyrecords: "Sin registros que mostrar",
  48. loadtext: "Cargando...",
  49. pgtext: "Página {0} de {1}",
  50. pgfirst: "Primera página",
  51. pglast: "Última página",
  52. pgnext: "Página siguiente",
  53. pgprev: "Página anterior",
  54. pgrecs: "Registros por página",
  55. showhide: "Alternar expandir/colapsar la tabla",
  56. savetext: "Guardando..."
  57. },
  58. search: {
  59. caption: "Búsqueda...",
  60. Find: "Buscar",
  61. Reset: "Limpiar",
  62. odata: [
  63. { oper: "eq", text: "igual" },
  64. { oper: "ne", text: "no igual a" },
  65. { oper: "lt", text: "menor que" },
  66. { oper: "le", text: "menor o igual que" },
  67. { oper: "gt", text: "mayor que" },
  68. { oper: "ge", text: "mayor o igual a" },
  69. { oper: "bw", text: "empieza por" },
  70. { oper: "bn", text: "no empieza por" },
  71. { oper: "in", text: "está en" },
  72. { oper: "ni", text: "no está en" },
  73. { oper: "ew", text: "termina por" },
  74. { oper: "en", text: "no termina por" },
  75. { oper: "cn", text: "contiene" },
  76. { oper: "nc", text: "no contiene" },
  77. { oper: "nu", text: "es nulo" },
  78. { oper: "nn", text: "no es nulo" }
  79. ],
  80. groupOps: [
  81. { op: "AND", text: "todo" },
  82. { op: "OR", text: "cualquier" }
  83. ],
  84. addGroupTitle: "Crear subgrupo",
  85. deleteGroupTitle: "Eliminar grupo",
  86. addRuleTitle: "Crear regla",
  87. deleteRuleTitle: "Eliminar regla",
  88. operandTitle: "Clic para seleccionar la operación de búsqueda.",
  89. resetTitle: "Reiniciar valor de búsqueda"
  90. },
  91. edit: {
  92. addCaption: "Agregar registro",
  93. editCaption: "Modificar registro",
  94. bSubmit: "Guardar",
  95. bCancel: "Cancelar",
  96. bClose: "Cerrar",
  97. saveData: "Se han modificado los datos, ¿guardar cambios?",
  98. bYes: "Si",
  99. bNo: "No",
  100. bExit: "Cancelar",
  101. msg: {
  102. required: "Campo obligatorio",
  103. number: "Introduzca un número",
  104. minValue: "El valor debe ser mayor o igual a ",
  105. maxValue: "El valor debe ser menor o igual a ",
  106. email: "no es una dirección de correo válida",
  107. integer: "Introduzca un valor entero",
  108. date: "Introduza una fecha correcta ",
  109. url: "no es una URL válida. Prefijo requerido ('http://' or 'https://')",
  110. nodefined: " no está definido.",
  111. novalue: " valor de retorno es requerido.",
  112. customarray: "La función personalizada debe devolver un array.",
  113. customfcheck: "La función personalizada debe estar presente en el caso de validación personalizada."
  114. }
  115. },
  116. view: {
  117. caption: "Consultar registro",
  118. bClose: "Cerrar"
  119. },
  120. del: {
  121. caption: "Eliminar",
  122. msg: "¿Desea eliminar los registros seleccionados?",
  123. bSubmit: "Eliminar",
  124. bCancel: "Cancelar"
  125. },
  126. nav: {
  127. edittext: "",
  128. edittitle: "Modificar fila seleccionada",
  129. addtext: "",
  130. addtitle: "Agregar nueva fila",
  131. deltext: "",
  132. deltitle: "Eliminar fila seleccionada",
  133. searchtext: "",
  134. searchtitle: "Buscar información",
  135. refreshtext: "",
  136. refreshtitle: "Recargar datos",
  137. alertcap: "Aviso",
  138. alerttext: "Seleccione una fila",
  139. viewtext: "",
  140. viewtitle: "Ver fila seleccionada",
  141. savetext: "",
  142. savetitle: "Guardar fila",
  143. canceltext: "",
  144. canceltitle: "Cancelar edición de fila"
  145. },
  146. col: {
  147. caption: "Mostrar/ocultar columnas",
  148. bSubmit: "Enviar",
  149. bCancel: "Cancelar"
  150. },
  151. errors: {
  152. errcap: "Error",
  153. nourl: "No se ha especificado ninguna URL",
  154. norecords: "No hay datos para procesar",
  155. model: "Las columnas de nombres son diferentes de las columnas de modelo"
  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. "Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa",
  164. "Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado"
  165. ],
  166. monthNames: [
  167. "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic",
  168. "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
  169. ],
  170. AmPm: ["am", "pm", "AM", "PM"],
  171. S: function (j) {return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";},
  172. srcformat: "Y-m-d",
  173. newformat: "d-m-Y",
  174. masks: {
  175. ShortDate: "n/j/Y",
  176. LongDate: "l, F d, Y",
  177. FullDateTime: "l, F d, Y g:i:s A",
  178. MonthDay: "F d",
  179. ShortTime: "g:i A",
  180. LongTime: "g:i:s A",
  181. YearMonth: "F, Y"
  182. }
  183. }
  184. }
  185. };
  186. $.jgrid = $.jgrid || {};
  187. $.extend(true, $.jgrid, {
  188. defaults: {
  189. locale: "es"
  190. },
  191. locales: {
  192. // In general the property name is free, but it's recommended to use the names based on
  193. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  194. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  195. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  196. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  197. es: $.extend({}, locInfo, { name: "español", nameEnglish: "Spanish" }),
  198. "es-ES": $.extend({}, locInfo, { name: "Español (España)", nameEnglish: "Spanish (Spain)" })
  199. }
  200. });
  201. }));