[Zope3-dev] i18n scripts

Jim Fulton jim at zope.com
Wed Jan 7 15:08:52 EST 2004


Gintautas wrote:
> Hello,
> 
> I've been playing with Zope3 i18n and I've run into an issue. I cannot
> get the string extracting scripts, the ones in src/zope/app/translation_files,
> to work.
> 
> pygettext.py works fine, but it does not handle page templates.
> 
> I think I am supposed to use extract.py (that's what the
> ProgrammersTutorial suggests), but the script does not produce any
> results when executed.  It looks to me that it's not runnable directly -
> just a collection of classes.  However, all the zope3-related .pot files
> I have seen indicate that they were created with extract.py.
> 
> Am I misunderstanding something (highly probable), or this is currently broken?
> 

You want to use extract, as described in the tutorial.  Note, however,
that the domain you provide to extract must match the domain specified
in the zpt templates. It extracts strings *only* for the given domain.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list