locale-es-debug.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. // This is needed until we can refactor all of the locales into individual files
  2. Ext.define("Ext.locale.es.Component", {
  3. override: "Ext.Component"
  4. });
  5. Ext.define("Ext.locale.es.data.validator.Presence", {
  6. override: "Ext.data.validator.Presence",
  7. message: "Este campo es obligatorio",
  8. getMessage: function() {
  9. var me = this;
  10. return me.message || me.config.message;
  11. }
  12. });
  13. /**
  14. * Spanish/Latin American Translation by genius551v 04-08-2007
  15. * Revised by efege, 2007-04-15.
  16. * Revised by Rafaga2k 10-01-2007 (mm/dd/yyyy)
  17. * Revised by FeDe 12-13-2007 (mm/dd/yyyy)
  18. * Synchronized with 2.2 version of ext-lang-en.js (provided by Condor 8 aug 2008)
  19. * by halkon_polako 14-aug-2008
  20. */
  21. Ext.onReady(function() {
  22. if (Ext.Date) {
  23. Ext.Date.monthNames = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
  24. Ext.Date.getShortMonthName = function(month) {
  25. return Ext.Date.monthNames[month].substring(0, 3);
  26. };
  27. Ext.Date.monthNumbers = {
  28. Ene: 0,
  29. Feb: 1,
  30. Mar: 2,
  31. Abr: 3,
  32. May: 4,
  33. Jun: 5,
  34. Jul: 6,
  35. Ago: 7,
  36. Sep: 8,
  37. Oct: 9,
  38. Nov: 10,
  39. Dic: 11
  40. };
  41. Ext.Date.getMonthNumber = function(name) {
  42. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  43. };
  44. Ext.Date.dayNames = ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"];
  45. Ext.Date.getShortDayName = function(day) {
  46. // eslint-disable-next-line eqeqeq
  47. if (day == 3) {
  48. return "Mié";
  49. }
  50. // eslint-disable-next-line eqeqeq
  51. if (day == 6) {
  52. return "Sáb";
  53. }
  54. return Ext.Date.dayNames[day].substring(0, 3);
  55. };
  56. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? 'a.m.' : 'p.m.')";
  57. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? 'A.M.' : 'P.M.')";
  58. // This will match am or a.m.
  59. Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = {
  60. g: 1,
  61. c: "if (/(a\\.?m\\.?)/i.test(results[{0}])) {\n" +
  62. "if (!h || h == 12) { h = 0; }\n" +
  63. "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  64. s: "(A\\.?M\\.?|P\\.?M\\.?|a\\.?m\\.?|p\\.?m\\.?)",
  65. calcAtEnd: true
  66. };
  67. Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
  68. }
  69. if (Ext.util && Ext.util.Format) {
  70. Ext.apply(Ext.util.Format, {
  71. thousandSeparator: '.',
  72. decimalSeparator: ',',
  73. currencySign: '\u20ac',
  74. // Spanish Euro
  75. dateFormat: 'd/m/Y'
  76. });
  77. }
  78. });
  79. Ext.define("Ext.locale.es.form.CheckboxGroup", {
  80. override: "Ext.form.CheckboxGroup",
  81. blankText: "Debe seleccionar al menos un étem de este grupo"
  82. });
  83. Ext.define("Ext.locale.es.form.RadioGroup", {
  84. override: "Ext.form.RadioGroup",
  85. blankText: "Debe seleccionar un étem de este grupo"
  86. });
  87. Ext.define("Ext.locale.es.form.field.Base", {
  88. override: "Ext.form.field.Base",
  89. invalidText: "El valor en este campo es inválido"
  90. });
  91. Ext.define("Ext.locale.es.form.field.ComboBox", {
  92. override: "Ext.form.field.ComboBox",
  93. valueNotFoundText: undefined
  94. }, function() {
  95. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  96. loadingText: "Cargando..."
  97. });
  98. });
  99. Ext.define("Ext.locale.es.form.field.Date", {
  100. override: "Ext.form.field.Date",
  101. disabledDaysText: "Deshabilitado",
  102. disabledDatesText: "Deshabilitado",
  103. minText: "La fecha para este campo debe ser posterior a {0}",
  104. maxText: "La fecha para este campo debe ser anterior a {0}",
  105. invalidText: "{0} no es una fecha válida - debe tener el formato {1}",
  106. format: "d/m/Y",
  107. altFormats: "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
  108. });
  109. Ext.define("Ext.locale.es.form.field.File", {
  110. override: "Ext.form.field.File",
  111. buttonText: "Examinar..."
  112. });
  113. Ext.define("Ext.locale.es.form.field.HtmlEditor", {
  114. override: "Ext.form.field.HtmlEditor",
  115. createLinkText: "Por favor proporcione la URL para el enlace:"
  116. }, function() {
  117. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  118. buttonTips: {
  119. bold: {
  120. title: 'Negritas (Ctrl+B)',
  121. text: 'Transforma el texto seleccionado en Negritas.',
  122. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  123. },
  124. italic: {
  125. title: 'Itálica (Ctrl+I)',
  126. text: 'Transforma el texto seleccionado en Itálicas.',
  127. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  128. },
  129. underline: {
  130. title: 'Subrayado (Ctrl+U)',
  131. text: 'Subraya el texto seleccionado.',
  132. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  133. },
  134. increasefontsize: {
  135. title: 'Aumentar la fuente',
  136. text: 'Aumenta el tamaño de la fuente',
  137. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  138. },
  139. decreasefontsize: {
  140. title: 'Reducir la fuente',
  141. text: 'Reduce el tamaño de la fuente.',
  142. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  143. },
  144. backcolor: {
  145. title: 'Color de fondo',
  146. text: 'Modifica el color de fondo del texto seleccionado.',
  147. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  148. },
  149. forecolor: {
  150. title: 'Color de la fuente',
  151. text: 'Modifica el color del texto seleccionado.',
  152. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  153. },
  154. justifyleft: {
  155. title: 'Alinear a la izquierda',
  156. text: 'Alinea el texto a la izquierda.',
  157. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  158. },
  159. justifycenter: {
  160. title: 'Centrar',
  161. text: 'Centrar el texto.',
  162. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  163. },
  164. justifyright: {
  165. title: 'Alinear a la derecha',
  166. text: 'Alinea el texto a la derecha.',
  167. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  168. },
  169. insertunorderedlist: {
  170. title: 'Lista de viñetas',
  171. text: 'Inicia una lista con viñetas.',
  172. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  173. },
  174. insertorderedlist: {
  175. title: 'Lista numerada',
  176. text: 'Inicia una lista numerada.',
  177. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  178. },
  179. createlink: {
  180. title: 'Enlace',
  181. text: 'Inserta un enlace de hipertexto.',
  182. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  183. },
  184. sourceedit: {
  185. title: 'Código Fuente',
  186. text: 'Pasar al modo de edición de código fuente.',
  187. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  188. }
  189. }
  190. });
  191. });
  192. Ext.define("Ext.locale.es.form.field.Number", {
  193. override: "Ext.form.field.Number",
  194. decimalPrecision: 2,
  195. minText: "El valor mínimo para este campo es de {0}",
  196. maxText: "El valor máximo para este campo es de {0}",
  197. nanText: "{0} no es un número válido"
  198. });
  199. Ext.define("Ext.locale.es.form.field.Text", {
  200. override: "Ext.form.field.Text",
  201. minLengthText: "El tamaño mínimo para este campo es de {0}",
  202. maxLengthText: "El tamaño máximo para este campo es de {0}",
  203. blankText: "Este campo es obligatorio",
  204. regexText: "",
  205. emptyText: null
  206. });
  207. Ext.define("Ext.locale.es.form.field.Time", {
  208. override: "Ext.form.field.Time",
  209. minText: "La hora en este campo debe ser igual o posterior a {0}",
  210. maxText: "La hora en este campo debe ser igual o anterior a {0}",
  211. invalidText: "{0} no es una hora válida",
  212. format: "g:i A",
  213. altFormats: "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
  214. });
  215. Ext.define("Ext.locale.es.form.field.VTypes", {
  216. override: "Ext.form.field.VTypes",
  217. emailText: 'Este campo debe ser una dirección de correo electrónico con el formato "usuario@dominio.com"',
  218. urlText: 'Este campo debe ser una URL con el formato "http:/' + '/www.dominio.com"',
  219. alphaText: 'Este campo sólo debe contener letras y _',
  220. alphanumText: 'Este campo sólo debe contener letras, números y _'
  221. });
  222. Ext.define("Ext.locale.es.grid.PropertyColumnModel", {
  223. override: "Ext.grid.PropertyColumnModel",
  224. nameText: "Nombre",
  225. valueText: "Valor",
  226. dateFormat: "j/m/Y"
  227. });
  228. Ext.define("Ext.locale.es.grid.feature.Grouping", {
  229. override: "Ext.grid.feature.Grouping",
  230. emptyGroupText: '(Ninguno)',
  231. groupByText: 'Agrupar por este campo',
  232. showGroupsText: 'Mostrar en grupos'
  233. });
  234. Ext.define('Ext.locale.es.grid.filters.filter.Boolean', {
  235. override: 'Ext.grid.filters.filter.Boolean',
  236. yesText: 'Sí',
  237. noText: 'No'
  238. });
  239. Ext.define('Ext.locale.es.grid.filters.filter.List', {
  240. override: 'Ext.grid.filters.filter.List',
  241. loadingText: 'Cargando...'
  242. });
  243. Ext.define("Ext.locale.es.grid.header.Container", {
  244. override: "Ext.grid.header.Container",
  245. sortAscText: "Ordenar en forma ascendente",
  246. sortDescText: "Ordenar en forma descendente",
  247. columnsText: "Columnas"
  248. });
  249. Ext.define("Ext.locale.es.grid.plugin.DragDrop", {
  250. override: "Ext.grid.plugin.DragDrop",
  251. dragText: "{0} fila(s) seleccionada(s)"
  252. });
  253. Ext.define("Ext.locale.es.picker.Date", {
  254. override: "Ext.picker.Date",
  255. todayText: "Hoy",
  256. minText: "Esta fecha es anterior a la fecha mínima",
  257. maxText: "Esta fecha es posterior a la fecha máxima",
  258. disabledDaysText: "",
  259. disabledDatesText: "",
  260. nextText: 'Mes Siguiente (Control+Right)',
  261. prevText: 'Mes Anterior (Control+Left)',
  262. monthYearText: 'Seleccione un mes (Control+Up/Down para desplazar el año)',
  263. todayTip: "{0} (Barra espaciadora)",
  264. format: "d/m/Y",
  265. startDay: 1
  266. });
  267. Ext.define("Ext.locale.es.picker.Month", {
  268. override: "Ext.picker.Month",
  269. okText: "&#160;Aceptar&#160;",
  270. cancelText: "Cancelar"
  271. });
  272. Ext.define("Ext.locale.es.toolbar.Paging", {
  273. override: "Ext.PagingToolbar",
  274. beforePageText: "Página",
  275. afterPageText: "de {0}",
  276. firstText: "Primera página",
  277. prevText: "Página anterior",
  278. nextText: "Página siguiente",
  279. lastText: "Última página",
  280. refreshText: "Actualizar",
  281. displayMsg: "Mostrando {0} - {1} de {2}",
  282. emptyMsg: 'Sin datos para mostrar'
  283. });
  284. // changing the msg text below will affect the LoadMask
  285. Ext.define("Ext.locale.es.view.AbstractView", {
  286. override: "Ext.view.AbstractView",
  287. loadingText: "Cargando..."
  288. });
  289. Ext.define("Ext.locale.es.view.View", {
  290. override: "Ext.view.View",
  291. emptyText: ""
  292. });
  293. Ext.define("Ext.locale.es.window.MessageBox", {
  294. override: "Ext.window.MessageBox",
  295. buttonText: {
  296. ok: "Aceptar",
  297. cancel: "Cancelar",
  298. yes: "Sí",
  299. no: "No"
  300. }
  301. });