I am writing my own python application and I am wondering what is the correct way to include localisation in source distributions. I struggled with the documentation of setuptools; localisation is not even mentioned there. I use pypabel to extract my message catalogues and to compile them.
Questions
- Is there a possibility to compile
*.po
to*.mo
automatically before creating a source package with setup.py? Currently I have to compile everything before manually for each language... Where should I include those
*.mo
-files? Several linux distributions have different places for those files. In my opinion I line like this insetup.py
data_files=[('share/locale/de/LC_MESSAGES', ['locale/de/LC_MESSAGES/project.mo'])
does not really make sense. It may work on a particular linux machine when installing with pip. But it may break on bsd or windows...