Re: [Zope-dev] Getting translation of python code string to work

2011-06-05 Thread Leonardo Rochael Almeida
Hi Morten, OK. Well I have this function now: def _(msgid, request): language = request['LANGUAGE'] return translate(msgid, domain='SimpleChat', target_language=language) Which sends all the relevant bits to the translate function. But, this doesn't work either, and I can see it

Re: [Zope-dev] Getting translation of python code string to work

2011-06-01 Thread lists
Hi Morten, Hi Leonard, On Tue, May 31, 2011 at 13:19, li...@nidelven-it.no wrote: Hi, I have a oldschool style Zope 2 product, which has an i18n directory containing translations. Using i18n:domain=SimpleChat in this product works fine in the page templates, Well, ZPTs generate

[Zope-dev] Getting translation of python code string to work

2011-05-31 Thread lists
Hi, I have a oldschool style Zope 2 product, which has an i18n directory containing translations. Using i18n:domain=SimpleChat in this product works fine in the page templates, but when I start translating text in a Python module using _(Translate me) I just get English text (instead of