ext-locale-pt_BR.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * Portuguese/Brazil Translation by Weber Souza
  3. * 08 April 2007
  4. * Updated by Allan Brazute Alves (EthraZa)
  5. * 06 September 2007
  6. * Updated by Leonardo Lima
  7. * 05 March 2008
  8. * Updated by Juliano Tarini (jtarini)
  9. * 22 April 2008
  10. * Update by Guilherme Portela
  11. * 04 May 2015
  12. */
  13. Ext.onReady(function() {
  14. if (Ext.Date) {
  15. Ext.Date.monthNames = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
  16. Ext.Date.defaultFormat = 'd/m/Y';
  17. Ext.Date.defaultTimeFormat = 'H:i';
  18. Ext.Date.getShortMonthName = function(month) {
  19. return Ext.Date.monthNames[month].substring(0, 3);
  20. };
  21. Ext.Date.monthNumbers = {
  22. Jan: 0,
  23. Fev: 1,
  24. Mar: 2,
  25. Abr: 3,
  26. Mai: 4,
  27. Jun: 5,
  28. Jul: 6,
  29. Ago: 7,
  30. Set: 8,
  31. Out: 9,
  32. Nov: 10,
  33. Dez: 11
  34. };
  35. Ext.Date.getMonthNumber = function(name) {
  36. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  37. };
  38. Ext.Date.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
  39. }
  40. if (Ext.util && Ext.util.Format) {
  41. Ext.apply(Ext.util.Format, {
  42. thousandSeparator: '.',
  43. decimalSeparator: ',',
  44. currencySign: 'R$',
  45. // Brazilian Real
  46. dateFormat: 'd/m/Y'
  47. });
  48. Ext.util.Format.brMoney = Ext.util.Format.currency;
  49. }
  50. });