Hi, I have a i18n string defined outside the Pylons Controller, it
could be collected by "python setup.py extract_messages", I can
translate the string and compile it. But in the output page, don't
know why it always displays non-translated string. For example:

# myapp/controller/hello.py

global_string = _("Global String")  # Display non-translated string
always, why?

class HelloController(BaseController):
    def index(self):
        c.global_string = global_string
        c.local_string = _('Local String')  # Display translated
string correctly
        return render('/index.mako')

Any idea? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to