X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/locale/ext-lang-es.js diff --git a/locale/ext-lang-es.js b/locale/ext-lang-es.js new file mode 100644 index 00000000..ef377e74 --- /dev/null +++ b/locale/ext-lang-es.js @@ -0,0 +1,323 @@ +/** + * Spanish/Latin American Translation by genius551v 04-08-2007 + * Revised by efege, 2007-04-15. + * Revised by Rafaga2k 10-01-2007 (mm/dd/yyyy) + * Revised by FeDe 12-13-2007 (mm/dd/yyyy) + * Synchronized with 2.2 version of ext-lang-en.js (provided by Condor 8 aug 2008) + * by halkon_polako 14-aug-2008 + */ +Ext.onReady(function() { + if(Ext.Updater) { + Ext.Updater.defaults.indicatorText = '
Cargando...
'; + } + + if(Ext.view.View){ + Ext.view.View.prototype.emptyText = ""; + } + + if(Ext.grid.Panel){ + Ext.grid.Panel.prototype.ddText = "{0} fila(s) seleccionada(s)"; + } + + if(Ext.LoadMask){ + Ext.LoadMask.prototype.msg = "Cargando..."; + } + + if(Ext.Date) { + Ext.Date.monthNames = [ + "Enero", + "Febrero", + "Marzo", + "Abril", + "Mayo", + "Junio", + "Julio", + "Agosto", + "Septiembre", + "Octubre", + "Noviembre", + "Diciembre" + ]; + + Ext.Date.getShortMonthName = function(month) { + return Ext.Date.monthNames[month].substring(0, 3); + }; + + Ext.Date.monthNumbers = { + Ene : 0, + Feb : 1, + Mar : 2, + Abr : 3, + May : 4, + Jun : 5, + Jul : 6, + Ago : 7, + Sep : 8, + Oct : 9, + Nov : 10, + Dic : 11 + }; + + Ext.Date.getMonthNumber = function(name) { + return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; + }; + + Ext.Date.dayNames = [ + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Viernes", + "Sábado" + ]; + + Ext.Date.getShortDayName = function(day) { + if (day==3) return "Mié"; + if (day==6) return "Sáb"; + return Ext.Date.dayNames[day].substring(0, 3); + }; + + Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)"; + } + + if(Ext.MessageBox){ + Ext.MessageBox.buttonText = { + ok : "Aceptar", + cancel : "Cancelar", + yes : "Sí", + no : "No" + }; + } + + if(Ext.util.Format){ + Ext.apply(Ext.util.Format, { + thousandSeparator: '.', + decimalSeparator: ',', + currencySign: '\u20ac', // Spanish Euro + dateFormat: 'd/m/Y' + }); + } + + if(Ext.picker.Date){ + Ext.apply(Ext.picker.Date.prototype, { + todayText : "Hoy", + minText : "Esta fecha es anterior a la fecha mínima", + maxText : "Esta fecha es posterior a la fecha máxima", + disabledDaysText : "", + disabledDatesText : "", + monthNames : Ext.Date.monthNames, + dayNames : Ext.Date.dayNames, + nextText : 'Mes Siguiente (Control+Right)', + prevText : 'Mes Anterior (Control+Left)', + monthYearText : 'Seleccione un mes (Control+Up/Down para desplazar el año)', + todayTip : "{0} (Barra espaciadora)", + format : "d/m/Y", + startDay : 1 + }); + } + + if(Ext.picker.Month) { + Ext.apply(Ext.picker.Month.prototype, { + okText : " Ok ", + cancelText : "Cancelar" + }); + } + + if(Ext.toolbar.Paging){ + Ext.apply(Ext.PagingToolbar.prototype, { + beforePageText : "Página", + afterPageText : "de {0}", + firstText : "Primera página", + prevText : "Página anterior", + nextText : "Página siguiente", + lastText : "Última página", + refreshText : "Actualizar", + displayMsg : "Mostrando {0} - {1} de {2}", + emptyMsg : 'Sin datos para mostrar' + }); + } + + if(Ext.form.field.Base){ + Ext.form.field.Base.prototype.invalidText = "El valor en este campo es inválido"; + } + + if(Ext.form.field.Text){ + Ext.apply(Ext.form.field.Text.prototype, { + minLengthText : "El tamaño mínimo para este campo es de {0}", + maxLengthText : "El tamaño máximo para este campo es de {0}", + blankText : "Este campo es obligatorio", + regexText : "", + emptyText : null + }); + } + + if(Ext.form.field.Number){ + Ext.apply(Ext.form.field.Number.prototype, { + decimalSeparator : ".", + decimalPrecision : 2, + minText : "El valor mínimo para este campo es de {0}", + maxText : "El valor máximo para este campo es de {0}", + nanText : "{0} no es un número válido" + }); + } + + if(Ext.form.field.Date){ + Ext.apply(Ext.form.field.Date.prototype, { + disabledDaysText : "Deshabilitado", + disabledDatesText : "Deshabilitado", + minText : "La fecha para este campo debe ser posterior a {0}", + maxText : "La fecha para este campo debe ser anterior a {0}", + invalidText : "{0} no es una fecha válida - debe tener el formato {1}", + format : "d/m/Y", + altFormats : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d" + }); + } + + if(Ext.form.field.ComboBox){ + Ext.apply(Ext.form.field.ComboBox.prototype, { + loadingText : "Cargando...", + valueNotFoundText : undefined + }); + } + + if(Ext.form.field.VTypes){ + Ext.apply(Ext.form.field.VTypes, { + emailText : 'Este campo debe ser una dirección de correo electrónico con el formato "usuario@dominio.com"', + urlText : 'Este campo debe ser una URL con el formato "http:/'+'/www.dominio.com"', + alphaText : 'Este campo sólo debe contener letras y _', + alphanumText : 'Este campo sólo debe contener letras, números y _' + }); + } + + if(Ext.form.field.HtmlEditor){ + Ext.apply(Ext.form.field.HtmlEditor.prototype, { + createLinkText : "Por favor proporcione la URL para el enlace:", + buttonTips : { + bold : { + title: 'Negritas (Ctrl+B)', + text: 'Transforma el texto seleccionado en Negritas.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + italic : { + title: 'Itálica (Ctrl+I)', + text: 'Transforma el texto seleccionado en Itálicas.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + underline : { + title: 'Subrayado (Ctrl+U)', + text: 'Subraya el texto seleccionado.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + increasefontsize : { + title: 'Aumentar la fuente', + text: 'Aumenta el tamaño de la fuente', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + decreasefontsize : { + title: 'Reducir la fuente', + text: 'Reduce el tamaño de la fuente.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + backcolor : { + title: 'Color de fondo', + text: 'Modifica el color de fondo del texto seleccionado.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + forecolor : { + title: 'Color de la fuente', + text: 'Modifica el color del texto seleccionado.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifyleft : { + title: 'Alinear a la izquierda', + text: 'Alinea el texto a la izquierda.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifycenter : { + title: 'Centrar', + text: 'Centrar el texto.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifyright : { + title: 'Alinear a la derecha', + text: 'Alinea el texto a la derecha.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + insertunorderedlist : { + title: 'Lista de viñetas', + text: 'Inicia una lista con viñetas.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + insertorderedlist : { + title: 'Lista numerada', + text: 'Inicia una lista numerada.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + createlink : { + title: 'Enlace', + text: 'Inserta un enlace de hipertexto.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + sourceedit : { + title: 'Código Fuente', + text: 'Pasar al modo de edición de código fuente.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + } + } + }); + } + + if(Ext.grid.header.Container){ + Ext.apply(Ext.grid.header.Container.prototype, { + sortAscText : "Ordenar en forma ascendente", + sortDescText : "Ordenar en forma descendente", + columnsText : "Columnas" + }); + } + + if(Ext.grid.GroupingFeature){ + Ext.apply(Ext.grid.GroupingFeature.prototype, { + emptyGroupText : '(Ninguno)', + groupByText : 'Agrupar por este campo', + showGroupsText : 'Mostrar en grupos' + }); + } + + if(Ext.grid.PropertyColumnModel){ + Ext.apply(Ext.grid.PropertyColumnModel.prototype, { + nameText : "Nombre", + valueText : "Valor", + dateFormat : "j/m/Y" + }); + } + + if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ + Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { + splitTip : "Arrastre para redimensionar.", + collapsibleSplitTip : "Arrastre para redimensionar. Doble clic para ocultar." + }); + } + + if(Ext.form.field.Time){ + Ext.apply(Ext.form.field.Time.prototype, { + minText : "La hora en este campo debe ser igual o posterior a {0}", + maxText : "La hora en este campo debe ser igual o anterior a {0}", + invalidText : "{0} no es una hora válida", + format : "g:i A", + 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" + }); + } + + if(Ext.form.CheckboxGroup){ + Ext.apply(Ext.form.CheckboxGroup.prototype, { + blankText : "Debe seleccionar al menos un étem de este grupo" + }); + } + + if(Ext.form.RadioGroup){ + Ext.apply(Ext.form.RadioGroup.prototype, { + blankText : "Debe seleccionar un étem de este grupo" + }); + } +}); \ No newline at end of file