Hi,
i developing a pyramid application with i18n support. I've setup pyramid
to use lingua and as far as I user i18n tag in chameleon templates
pot-create extracting them correctly.
But translation strings from python code is not extracted.
I am following the documentation at
http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/i18n.html
error_notaicalfile = TranslationString("The given Address didn't return
a calendar file", domain='eventbroker')
and in the view i use
request.localizer.translate(error_notaicalfile)
Am I doing something wrong.
Regards
Estartu
--
---------------------------------------------------------------------------
Gerhard Schmidt |
http://www.augusta.de/~estartu |
Fischbachweg 3 | | PGP Public Key
86856 Hiltenfingen | JabberID:
est...@augusta.de | on request
Germany | |