Comment 3 for bug 219011

Revision history for this message
Christian Zagrodnick (zagy) wrote : Re: [Bug 219011] Re: zope.session 3.4.1 and zope.i18nmessageid 3.4.0a1 incompatibility
  • smime.p7s Edit (4.2 KiB, application/pkcs7-signature; name=smime.p7s)

On 18.04.2008, at 12:36, Philipp von Weitershausen wrote:
> I shall add that I believe importing ZopeMessageFactory from
> anywhere is
> stupid, for two reasons:
>
> 1. It's dead-easy to recreate:
>
> from zope.i18nmessageid import MessageFactory
> _ = MessageFactory('zope')
>
> Importing this is like importing an integer or a string.

I think exactly the other way round. It is a constant so bind it to
something you can track and import it. This is a very common pattern I
think. For instance docutils declars constants like REPORT_NDIFF. I
suppose you're not writing down those integers but import?

>
>
> 2. With the independent projects now, we should really split up the
> translation domains as well.

Ack. I think over the time this will happen naturally when new
translations are required.

--
Christian Zagrodnick

gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale
www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891