On Thursday 6. of September 2007 00:38:40 Dwayne Bailey wrote: > Just a heads up and a request for help. > > In my spare time I've been hacking on a Python wrapper for libgettextpo > using SWIG. This would allow us to access PO files at lightning C > speeds and would eliminate the need to maintain our own PO files, > allowing us to spend time more fruitfully elsewhere. > > Status: > It works. I can count PO files, it's about twice as fast as the pure > Python method. I haven't looked at any of the converters, most of them > crash :) Often due to things that still need to be implemented. > > Some tasks that I need help with: > * I'm using SWIG to create the Python wrapper and have hit my head > against a brick wall and my almost zero knowledge of C, and the chill I > get down my spine when I see pointers is not helping. > * Packaging the swig building and gcc compiling so that we can integrate > it into the build system. I'm not a distutils expert.
I've done this before, you can ping me on irc. One note about the packaging though, Python extension for Windows need to be built with Visual Studio 2003, because Python is built with it. > > Issues: > * Probably the biggest issue that will emerge from this work is a relook > at how we handle PO files. Its seems that Gettext is pretty > unforgiving, while we accept PO files that aren't quite correct it seems > that libgettextpo won't. So we'd need to decide on how to handle that, > a) fallback to Python, or b) change our expected behaviour. > > If anyone can help with these I'd appreciate it. My opinion is to fail on irregular PO files. Regards, Gasper ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
