ext-locale-es.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. Ext.onReady(function() {
  10. if (Ext.Date) {
  11. Ext.Date.monthNames = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
  12. Ext.Date.getShortMonthName = function(month) {
  13. return Ext.Date.monthNames[month].substring(0, 3);
  14. };
  15. Ext.Date.monthNumbers = {
  16. Ene: 0,
  17. Feb: 1,
  18. Mar: 2,
  19. Abr: 3,
  20. May: 4,
  21. Jun: 5,
  22. Jul: 6,
  23. Ago: 7,
  24. Sep: 8,
  25. Oct: 9,
  26. Nov: 10,
  27. Dic: 11
  28. };
  29. Ext.Date.getMonthNumber = function(name) {
  30. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  31. };
  32. Ext.Date.dayNames = ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"];
  33. Ext.Date.getShortDayName = function(day) {
  34. if (day == 3) return "Mié";
  35. if (day == 6) return "Sáb";
  36. return Ext.Date.dayNames[day].substring(0, 3);
  37. };
  38. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? 'a.m.' : 'p.m.')";
  39. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? 'A.M.' : 'P.M.')";
  40. // This will match am or a.m.
  41. Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = {
  42. g:1,
  43. c:"if (/(a\\.?m\\.?)/i.test(results[{0}])) {\n"
  44. + "if (!h || h == 12) { h = 0; }\n"
  45. + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  46. s:"(A\\.?M\\.?|P\\.?M\\.?|a\\.?m\\.?|p\\.?m\\.?)",
  47. calcAtEnd: true
  48. };
  49. Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
  50. }
  51. if (Ext.util && Ext.util.Format) {
  52. Ext.apply(Ext.util.Format, {
  53. thousandSeparator: '.',
  54. decimalSeparator: ',',
  55. currencySign: '\u20ac',
  56. // Spanish Euro
  57. dateFormat: 'd/m/Y'
  58. });
  59. }
  60. });