I noticed that since the upgrade from TG0.8 to TG1.5, my templates are no 
longer translating. It seems that the translations which are happening 
inside the Python code work fine. It's only the templates themselves which 
don't translate. As an examle, this will work ('Hello' will be translated):

@expose()
def foo(self):
    return _('Hello')

But this won't:

@expose(template='foo.html')
def foo(self):
    return dict()

with 

<html ...>
    ...
    <h1>Hello</h1>
    ...
</html>

After digging around, I came across the following line: 
http://sourceforge.net/p/turbogears1/code/7426/tree/tags/1.5.1/turbogears/view/base.py#l525
In that line, the variable "callback" is set, but it is not used anywhere. 
Could this be the cause of the problem?


Cheers,

Mich.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to