Well, the first clue is _() not working in Genshi templates.

I've fixed with temporarily with

+    import turbogears
+    _=turbogears.i18n.tg_gettext.gettext

in my master.html file.

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).

I have no problems collecting and maintaining my translatable strings
(been trying but cmd line and toolbox in my old setup, but recently
switched to Babel). All my problems are runtime related.

I wonder if this is because some app.cfg setting is not configured
correctly or simply is ignored in the TG 1.5b2 version.

Thanks,
Arne


On Apr 5, 11:33 am, Christoph Zwerschke <[email protected]> wrote:
> Am 05.04.2011 11:03, schrieb mejlholm:
>
> > I'm giving upgrading to TG 1.5b2 a shot, but I can't seem to get i18n
> > to work properly.
>
> What did you try to do, what exactly is not working? Are you using the
> i18n tools from the command line or in the toolbox?
>
> -- 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.

Reply via email to