Getting translation of python code string to work

[email protected]
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
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

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.