International APPs / pygettext

Martin v. Loewis martin at v.loewis.de
Wed Oct 16 15:57:15 EDT 2002


Ingo Linkweiler <i.linkweiler at web.de> writes:

> My program uses many modules. What is the best way to get a
> translation of all modules?

It is recommend that there is one "textual domain" per application or
library. Otherwise, LC_MESSAGES will get unreasonably large, and
translators have to deal with too many individual files.

So yes, you should combine all your source code into a single textual
domain.

> Is it possible to get one .pot-file with all extracted strings of all
> modules, or do I need one .pot-file for each .py-file? For example
> (This does not work):
> 
> pygettext.py *.py -d langtest

Did you try "pygettext.py -d langtest *.py"?

Regards,
Martin



More information about the Python-list mailing list