locale-es-debug.js 11 KB

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