[Distutils] Msgfmt in distutils?
pjenvey at underboss.org
Wed Oct 1 21:43:32 CEST 2008
On Oct 1, 2008, at 11:25 AM, Toshio Kuratomi wrote:
> Jeroen Ruigrok van der Werven wrote:
>> -On [20081001 16:28], Toshio Kuratomi (a.badger at gmail.com) wrote:
>>>> and have distutils do the right thing with the .po files at build
>>>> (generate .mo files from them) and at install time (install them
>>>> PREFIX/share/locales/LC_MESSAGES/, or wherever the distribution is
>>>> configured to put them).
>>> This has been a big deal for some applications I work on. Our
>>> first cut
>>> was to add new Build and InstallData command classes.
>> Actually with Babel (http://babel.edgewall.org/) that's all handled.
> That's good to know. One of our Turbogears applications uses Babel
> it definitely doesn't install to the right place. I'd love to fix
> it to
> take advantage of Babel' properly. Would you be kind enough to
> point me
> documentation on how to get Babel to install locale files? Looking at
> the babel website, I only see documentation up to building the message
> catalogs. If the install portion is integrated into setuptools is
> something I might have to configure in setup() to tell babel/
> what directory to use?
Once you have Babel generating .mo files, all you'll need is a
package_data entry for them, e.g.:
then the catalogs will make it into the final sdist/egg and be
included during an installation.
More information about the Distutils-SIG