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