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.
On 18.04.2008, at 12:36, Philipp von Weitershausen wrote: 'zope')
> 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(
>
> 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