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