Date.js 1.1 KB

123456789101112131415161718192021222324252627
  1. /**
  2. * Swedish translation (utf8-encoding)
  3. * By Erik Andersson, Monator Technologies
  4. * 24 April 2007
  5. * Changed by Cariad, 29 July 2007
  6. */
  7. Ext.onReady(function() {
  8. if (Ext.Date) {
  9. Ext.Date.monthNames = ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"];
  10. Ext.Date.dayNames = ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"];
  11. Ext.Date.formatCodes.a = "(m.getHours() < 12 ? 'em' : 'fm')";
  12. Ext.Date.formatCodes.A = "(m.getHours() < 12 ? 'EM' : 'FM')";
  13. Ext.Date.parseCodes.a = {
  14. g: 1,
  15. c: "if (/(em)/i.test(results[{0}])) {\n" + "if (!h || h == 12) { h = 0; }\n" + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  16. s: "(em|fm|EM|FM)",
  17. calcAtEnd: true
  18. };
  19. Ext.Date.parseCodes.A = {
  20. g: 1,
  21. c: "if (/(em)/i.test(results[{0}])) {\n" + "if (!h || h == 12) { h = 0; }\n" + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  22. s: "(EM|FM|em|fm)",
  23. calcAtEnd: true
  24. };
  25. }
  26. });