Ticket #1061: 1061.diff
File 1061.diff, 1.6 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/media/js/calendar.js
25 25 var CalendarNamespace = { 26 26 monthsOfYear: gettext('January February March April May June July August September October November December').split(' '), 27 27 daysOfWeek: gettext('S M T W T F S').split(' '), 28 firstDayOfWeek: parseInt(gettext('FIRST_DAY_OF_WEEK').replace('FIRST_DAY_OF_WEEK', '0')), 28 29 isLeapYear: function(year) { 29 30 return (((year % 4)==0) && ((year % 100)!=0) || ((year % 400)==0)); 30 31 }, … … 56 57 // Draw days-of-week header 57 58 var tableRow = quickElement('tr', tableBody); 58 59 for (var i = 0; i < 7; i++) { 59 quickElement('th', tableRow, CalendarNamespace.daysOfWeek[ i]);60 quickElement('th', tableRow, CalendarNamespace.daysOfWeek[(i + CalendarNamespace.firstDayOfWeek) % 7]); 60 61 } 61 62 62 63 var startingPos = new Date(year, month-1, 1).getDay(); -
django/conf/locale/ca/LC_MESSAGES/djangojs.po
57 57 msgid "S M T W T F S" 58 58 msgstr "Dg Dl Dt Dc Dj Dv Ds" 59 59 60 #: contrib/admin/media/js/calendar.js:26 61 msgid "FIRST_DAY_OF_WEEK" 62 msgstr "1" 63 60 64 #: contrib/admin/media/js/admin/DateTimeShortcuts.js:47 61 65 #: contrib/admin/media/js/admin/DateTimeShortcuts.js:81 62 66 msgid "Now"