On Apr 5, 1:47 pm, Christoph Zwerschke <[email protected]> wrote: > Am 05.04.2011 11:47, schrieb mejlholm: > > > Well, the first clue is _() not working in Genshi templates. > > Has this been working in TG 1.0 or 1.1?
Yes. You can see my production version running 1.1.2 here http://scorekeeper.ddgu.dk/ > > Furthermore I have this little language change icon on my web > > application, which calls the following url and reloads the page: > > > @expose('json') > > def change_language(self, language): > > i18n.set_session_locale(language) > > redirect(request.headers.get("Referer", "/")) > > > In 1.5b2 this however has no effect either (and it worked fine all the > > way through the 1.0.X and 1.X versions). > > Ok, I'll have a look. What I find a bit suspicious is the > @expose('json'). Does it work with a bare @expose()? It works fine with and without the 'json' expose in 1.1.2, but there is no difference in the 1.5b2 version (both are not working). That would however not have explaied that _() isn't working either. My focus is drifting more towards the app.cfg file, where I have set: # Set session or cookie tools.sessions.on = True # Set internationalization i18n.default_locale = 'da' i18n.run_template_filter = True kid.i18n.run_template_filter = True i18n.gettext = 'tg_gettext' It seems to me that these settings are ignored completely. > -- Christoph -- 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.

