ext-lang-es_wev8.js
8.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
/*
* 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)
*/
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Cargando...</div>';
if(Ext.View){
Ext.View.prototype.emptyText = "";
}
if(Ext.grid.Grid){
Ext.grid.Grid.prototype.ddText = "{0} fila(s) seleccionada(s)";
}
if(Ext.TabPanelItem){
Ext.TabPanelItem.prototype.closeText = "Cerrar esta pestaña";
}
if(Ext.form.Field){
Ext.form.Field.prototype.invalidText = "El valor en este campo es inválido";
}
if(Ext.LoadMask){
Ext.LoadMask.prototype.msg = "Cargando...";
}
Date.monthNames = [
"Enero",
"Febrero",
"Marzo",
"Abril",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
Date.getShortMonthName = function(month) {
return Date.monthNames[month].substring(0, 3);
};
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
};
Date.getMonthNumber = function(name) {
return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
};
Date.dayNames = [
"Domingo",
"Lunes",
"Martes",
"Miércoles",
"Jueves",
"Viernes",
"Sábado"
];
Date.getShortDayName = function(day) {
if (day==3) return "Mié";
if (day==6) return "Sáb";
return Date.dayNames[day].substring(0, 3);
};
if(Ext.MessageBox){
Ext.MessageBox.buttonText = {
ok : "Aceptar",
cancel : "Cancelar",
yes : "Sí",
no : "No"
};
}
if(Ext.util.Format){
Ext.util.Format.date = function(v, format){
if(!v) return "";
if(!(v instanceof Date)) v = new Date(Date.parse(v));
return v.dateFormat(format || "d/m/Y");
};
}
if(Ext.DatePicker){
Ext.apply(Ext.DatePicker.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 : Date.monthNames,
dayNames : 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",
okText : " Ok ",
cancelText : "Cancelar",
startDay : 1
});
}
if(Ext.PagingToolbar){
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.TextField){
Ext.apply(Ext.form.TextField.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.NumberField){
Ext.apply(Ext.form.NumberField.prototype, {
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.DateField){
Ext.apply(Ext.form.DateField.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.ComboBox){
Ext.apply(Ext.form.ComboBox.prototype, {
loadingText : "Cargando...",
valueNotFoundText : undefined
});
}
if(Ext.form.HtmlEditor){
Ext.apply(Ext.form.HtmlEditor.prototype, {
createLinkText : "Por favor proporcione la URL para el enlace:",
buttonTips : {
insertimage:{
title:'Imagen',
text:'Inserta una imagen en la posición actual',
cls:'x-html-editor-tip'
},
bold : {
title: 'Negritas (Ctrl+B)',
text: 'Transforma el texto seleccionado en Negritas.',
cls: 'x-html-editor-tip'
},
italic : {
title: 'Itálica (Ctrl+I)',
text: 'Transforma el texto seleccionado en Itálicas.',
cls: 'x-html-editor-tip'
},
underline : {
title: 'Subrayado (Ctrl+U)',
text: 'Subraya el texto seleccionado.',
cls: 'x-html-editor-tip'
},
increasefontsize : {
title: 'Aumentar la fuente',
text: 'Aumenta el tamaño de la fuente',
cls: 'x-html-editor-tip'
},
decreasefontsize : {
title: 'Reducir la fuente',
text: 'Reduce el tamaño de la fuente.',
cls: 'x-html-editor-tip'
},
backcolor : {
title: 'Color de fondo',
text: 'Modifica el color de fondo del texto seleccionado.',
cls: 'x-html-editor-tip'
},
forecolor : {
title: 'Color de la fuente',
text: 'Modifica el color del texto seleccionado.',
cls: 'x-html-editor-tip'
},
justifyleft : {
title: 'Alinear a la izquierda',
text: 'Alinea el texto a la izquierda.',
cls: 'x-html-editor-tip'
},
justifycenter : {
title: 'Centrar',
text: 'Centrar el texto.',
cls: 'x-html-editor-tip'
},
justifyright : {
title: 'Alinear a la derecha',
text: 'Alinea el texto a la derecha.',
cls: 'x-html-editor-tip'
},
insertunorderedlist : {
title: 'Lista de viñetas',
text: 'Inicia una lista con viñetas.',
cls: 'x-html-editor-tip'
},
insertorderedlist : {
title: 'Lista numerada',
text: 'Inicia una lista numerada.',
cls: 'x-html-editor-tip'
},
createlink : {
title: 'Enlace',
text: 'Inserta un enlace de hipertexto.',
cls: 'x-html-editor-tip'
},
sourceedit : {
title: 'Código Fuente',
text: 'Pasar al modo de edición de código fuente.',
cls: 'x-html-editor-tip'
}
}
});
}
if(Ext.form.VTypes){
Ext.apply(Ext.form.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.grid.GridView){
Ext.apply(Ext.grid.GridView.prototype, {
sortAscText : "Ordenar en forma ascendente",
sortDescText : "Ordenar en forma descendente",
lockText : "Bloquear Columna",
unlockText : "Desbloquear Columna",
columnsText : "Columnas"
});
}
if(Ext.grid.GroupingView){
Ext.apply(Ext.grid.GroupingView.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.SplitRegion){
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
splitTip : "Arrastre para redimensionar.",
collapsibleSplitTip : "Arrastre para redimensionar. Doble clic para ocultar."
});
}