Discussion:
[Zope3-dev] i18n message factory in zope domain
Baiju M
2007-10-03 09:51:26 UTC
Permalink
Hi,
Should we create separate message factory in 'zope' domain for
each packages ? If so, can anyone explain why it should be like that.

Few weeks back a new message factory is created in
zope.i18nmessageid [1] . And now some packages use this directly.

I am bit confused now ...

[1] http://svn.zope.org/?rev=80022&view=rev


Regards,
Baiju M
Philipp von Weitershausen
2007-10-03 17:20:42 UTC
Permalink
Post by Baiju M
Should we create separate message factory in 'zope' domain for
each packages ? If so, can anyone explain why it should be like that.
No. I think each package that has translations should actually use its
*own* domain and ship with the translations. In an eggified world it
doesn't make sense to maintain translations centrally in zope.app.locales.
Post by Baiju M
Few weeks back a new message factory is created in
zope.i18nmessageid [1] . And now some packages use this directly.
I think this was a mistake. I don't understand why this was done at all.
It's absolutely no problem to do

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

instead of

from zope.i18nmessageid import ZopeFactory as _
--
http://worldcookery.com -- Professional Zope documentation and training
Loading...