On Thursday 08 May 2008, Roger Ineichen wrote:
That should not be necessary I think. At least I am not used to it. When I use i18ndude for making pot/po files for a Plone product/package and I have "from Products.CMFPlone import something" in a file, then this import does not really take place. I expect in the case of python files it simply looks for lines like:
_(u"My message to the world.")
Probably it works in some ues case but for sure not in all. Let's give a sample. If you define a interface like
foo = zope.schema.Choice( title=_('Title'), vocabulary=foo.bar.myVocabularyFromPackageFoo )
You do not need a running environment for the Python message extractions; you need it for ZCML (I think). Python is extracted using the parser module and looking for _ function calls with a string in it. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. "Zope Stephan Richter"