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

lists at nidelven-it.no lists at nidelven-it.no
Tue May 31 07:19:08 EDT 2011


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 Norwegian, which is what I want).

The top of the module contains this:

from zope.i18nmessageid import MessageFactory
_ = MessageFactory('SimpleChat')

Any ideas?

TIA,

Morten



More information about the Zope-Dev mailing list