On Jan 21, 5:51 pm, Walt <tufelkin...@gmail.com> wrote: > Okay, we're getting somewhere. It can find the JS file(s) just fine > and I see that the calendars are added dynamically. However, I'm > have found that it is generating a javascript error when the page > loads: > > Error: gettext is not defined > Source File:http://tachamber.org/media/admin/js/calendar.js > Line: 26 [monthsOfYear: gettext('January February March April May June > July August September October November December').split(' '),] > > Error: gettext is not defined > Source File:http://tachamber.org/media/admin/js/admin/DateTimeShortcuts.js > Line: 134 [today_link.appendChild(document.createTextNode(gettext > ('Today')));] > > Any ideas? > > Walt > > -~
You need to be sure that the page loads the 'jsi18n' javascript first. By default, admin templates include this: <script type="text/javascript" src="../../../jsi18n/"></script> -- DR.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.