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