Problem solved (kind of). I narrowed the problem down to the fact that my Genshi master.html does not extend the sitetemplate.kid in which the scripts defined at the python level are included in the output. I therefore tried manually putting the lines from the sitetemplate.kid into my master.html and wrapped the display() functions in ET() to make them work with Genshi.
Best regards, Jesper On Apr 1, 9:19 am, jlar <[email protected]> wrote: > Hi people, > > I am trying to internationalize my TG (1.0.5) application. I have > followed the directions on this page: > > http://docs.turbogears.org/1.0/Internationalization > > When I try to run the application it seems like the i18n.js widget is > not included even though I have set the option > > tg.include_widgets = ['turbogears.jsi18nwidget'] > > I am using the standard javascript directory (static/javascript) and > Genshi as templating language. > > The error message I get is: _ is not defined (and I can't find a > reference to i18n.js in the output to the browser). > > Any ideas what goes wrong, how to debug it or a workaround (manual > inclusion of the js file is an option)? > > Best regards, > Jesper --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

