ext-locale-it.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Italian translation
  3. * 2016-06-28 updated by Fabio De Paolis (update to ExtJs 6.0.2)
  4. * 2012-05-28 updated by Fabio De Paolis (many changes, update to 4.1.0)
  5. * 2007-12-21 updated by Federico Grilli
  6. * 2007-10-04 updated by eric_void
  7. */
  8. Ext.onReady(function() {
  9. if (Ext.Date) {
  10. Ext.Date.monthNames = ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"];
  11. Ext.Date.getShortMonthName = function(month) {
  12. return Ext.Date.monthNames[month].substring(0, 3);
  13. };
  14. Ext.Date.monthNumbers = {
  15. Gen: 0,
  16. Feb: 1,
  17. Mar: 2,
  18. Apr: 3,
  19. Mag: 4,
  20. Giu: 5,
  21. Lug: 6,
  22. Ago: 7,
  23. Set: 8,
  24. Ott: 9,
  25. Nov: 10,
  26. Dic: 11
  27. };
  28. Ext.Date.getMonthNumber = function(name) {
  29. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  30. };
  31. Ext.Date.dayNames = ["Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato"];
  32. Ext.Date.getShortDayName = function(day) {
  33. return Ext.Date.dayNames[day].substring(0, 3);
  34. };
  35. }
  36. if (Ext.util && Ext.util.Format) {
  37. Ext.apply(Ext.util.Format, {
  38. thousandSeparator: '.',
  39. decimalSeparator: ',',
  40. currencySign: '\u20ac', // Euro
  41. dateFormat: 'd/m/Y'
  42. });
  43. }
  44. });