Upgrade to ExtJS 4.0.2 - Released 06/09/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         loadingText       : "Cargando...",
194         valueNotFoundText : undefined
195       });
196     }
197
198     if(Ext.form.field.VTypes){
199       Ext.apply(Ext.form.field.VTypes, {
200         emailText    : 'Este campo debe ser una direcci&#243;n de correo electr&#243;nico con el formato "usuario@dominio.com"',
201         urlText      : 'Este campo debe ser una URL con el formato "http:/'+'/www.dominio.com"',
202         alphaText    : 'Este campo s&#243;lo debe contener letras y _',
203         alphanumText : 'Este campo s&#243;lo debe contener letras, n&#250;meros y _'
204       });
205     }
206
207     if(Ext.form.field.HtmlEditor){
208       Ext.apply(Ext.form.field.HtmlEditor.prototype, {
209         createLinkText : "Por favor proporcione la URL para el enlace:",
210         buttonTips : {
211           bold : {
212             title: 'Negritas (Ctrl+B)',
213             text: 'Transforma el texto seleccionado en Negritas.',
214             cls: Ext.baseCSSPrefix + 'html-editor-tip'
215           },
216           italic : {
217             title: 'It&#225;lica (Ctrl+I)',
218             text: 'Transforma el texto seleccionado en It&#225;licas.',
219             cls: Ext.baseCSSPrefix + 'html-editor-tip'
220           },
221           underline : {
222             title: 'Subrayado (Ctrl+U)',
223             text: 'Subraya el texto seleccionado.',
224             cls: Ext.baseCSSPrefix + 'html-editor-tip'
225           },
226           increasefontsize : {
227             title: 'Aumentar la fuente',
228             text: 'Aumenta el tama&#241;o de la fuente',
229             cls: Ext.baseCSSPrefix + 'html-editor-tip'
230           },
231           decreasefontsize : {
232             title: 'Reducir la fuente',
233             text: 'Reduce el tama&#241;o de la fuente.',
234             cls: Ext.baseCSSPrefix + 'html-editor-tip'
235           },
236           backcolor : {
237             title: 'Color de fondo',
238             text: 'Modifica el color de fondo del texto seleccionado.',
239             cls: Ext.baseCSSPrefix + 'html-editor-tip'
240           },
241           forecolor : {
242             title: 'Color de la fuente',
243             text: 'Modifica el color del texto seleccionado.',
244             cls: Ext.baseCSSPrefix + 'html-editor-tip'
245           },
246           justifyleft : {
247             title: 'Alinear a la izquierda',
248             text: 'Alinea el texto a la izquierda.',
249             cls: Ext.baseCSSPrefix + 'html-editor-tip'
250           },
251           justifycenter : {
252             title: 'Centrar',
253             text: 'Centrar el texto.',
254             cls: Ext.baseCSSPrefix + 'html-editor-tip'
255           },
256           justifyright : {
257             title: 'Alinear a la derecha',
258             text: 'Alinea el texto a la derecha.',
259             cls: Ext.baseCSSPrefix + 'html-editor-tip'
260           },
261           insertunorderedlist : {
262             title: 'Lista de vi&#241;etas',
263             text: 'Inicia una lista con vi&#241;etas.',
264             cls: Ext.baseCSSPrefix + 'html-editor-tip'
265           },
266           insertorderedlist : {
267             title: 'Lista numerada',
268             text: 'Inicia una lista numerada.',
269             cls: Ext.baseCSSPrefix + 'html-editor-tip'
270           },
271           createlink : {
272             title: 'Enlace',
273             text: 'Inserta un enlace de hipertexto.',
274             cls: Ext.baseCSSPrefix + 'html-editor-tip'
275           },
276           sourceedit : {
277             title: 'C&#243;digo Fuente',
278             text: 'Pasar al modo de edici&#243;n de c&#243;digo fuente.',
279             cls: Ext.baseCSSPrefix + 'html-editor-tip'
280           }
281         }
282       });
283     }
284
285     if(Ext.grid.header.Container){
286       Ext.apply(Ext.grid.header.Container.prototype, {
287         sortAscText  : "Ordenar en forma ascendente",
288         sortDescText : "Ordenar en forma descendente",
289         columnsText  : "Columnas"
290       });
291     }
292
293     if(Ext.grid.GroupingFeature){
294       Ext.apply(Ext.grid.GroupingFeature.prototype, {
295         emptyGroupText : '(Ninguno)',
296         groupByText    : 'Agrupar por este campo',
297         showGroupsText : 'Mostrar en grupos'
298       });
299     }
300
301     if(Ext.grid.PropertyColumnModel){
302       Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
303         nameText   : "Nombre",
304         valueText  : "Valor",
305         dateFormat : "j/m/Y"
306       });
307     }
308
309     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
310       Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
311         splitTip            : "Arrastre para redimensionar.",
312         collapsibleSplitTip : "Arrastre para redimensionar. Doble clic para ocultar."
313       });
314     }
315
316     if(Ext.form.field.Time){
317       Ext.apply(Ext.form.field.Time.prototype, {
318         minText : "La hora en este campo debe ser igual o posterior a {0}",
319         maxText : "La hora en este campo debe ser igual o anterior a {0}",
320         invalidText : "{0} no es una hora v&#225;lida",
321         format : "g:i A",
322         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"
323       });
324     }
325
326     if(Ext.form.CheckboxGroup){
327       Ext.apply(Ext.form.CheckboxGroup.prototype, {
328         blankText : "Debe seleccionar al menos un &#233;tem de este grupo"
329       });
330     }
331
332     if(Ext.form.RadioGroup){
333       Ext.apply(Ext.form.RadioGroup.prototype, {
334         blankText : "Debe seleccionar un &#233;tem de este grupo"
335       });
336     }
337 });