/** * 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) * Synchronized with 2.2 version of ext-lang-en.js (provided by Condor 8 aug 2008) * by halkon_polako 14-aug-2008 */ Ext.onReady(function() { if (Ext.Date) { Ext.Date.monthNames = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"]; Ext.Date.getShortMonthName = function(month) { return Ext.Date.monthNames[month].substring(0, 3); }; Ext.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 }; Ext.Date.getMonthNumber = function(name) { return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; }; Ext.Date.dayNames = ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"]; Ext.Date.getShortDayName = function(day) { if (day == 3) return "Mié"; if (day == 6) return "Sáb"; return Ext.Date.dayNames[day].substring(0, 3); }; Ext.Date.formatCodes.a = "(this.getHours() < 12 ? 'a.m.' : 'p.m.')"; Ext.Date.formatCodes.A = "(this.getHours() < 12 ? 'A.M.' : 'P.M.')"; // This will match am or a.m. Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = { g:1, c:"if (/(a\\.?m\\.?)/i.test(results[{0}])) {\n" + "if (!h || h == 12) { h = 0; }\n" + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}", s:"(A\\.?M\\.?|P\\.?M\\.?|a\\.?m\\.?|p\\.?m\\.?)", calcAtEnd: true }; Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)"; } if (Ext.util && Ext.util.Format) { Ext.apply(Ext.util.Format, { thousandSeparator: '.', decimalSeparator: ',', currencySign: '\u20ac', // Spanish Euro dateFormat: 'd/m/Y' }); } });