Hi,
To be short, i18ndude seems not to work with domains of MessageFactory, or
it seems that I don't use i18ndude the way it likes. Here is the detailed
problem:
I'm working on a product that needs to translate some strings in the class
defining a content type. To achieve that, there is several steps:
1. declare the MessageFactory like:
from zope.i18nmessageid import MessageFactory
PlopMessageFactory = MessageFactory('plopDomain')
2. write the code translating the string:
from somewhere import PlopMessageFactory as _
...
message[someIndex] = _(u'label_message', default=u'Some default message')
3. run i18ndude:
$ i18ndude rebuild-pot --pot plopDomain.pot --create plopDomain --merge
plopDomain-manual.pot ../somewhere.*
$ i18ndude rebuild-pot --pot plone.pot --create plone --merge
plone-manual.pot ../somewhere.*
The problem is that my "label_message" msgid is placed by i18ndude in the
plone.pot, not in the plopDomain.pot, and therefore will not be seen for
the translation mechanism.
Any clue ?
--
Emmanuel
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers