Translate¶
Pharmaship uses pure gettext and Django’s system for translation.
All .pot, .po and .mo file generation is handled in a Makefile.
The following commands must be executed in the same Python environment of Pharmaship (especially if you are using a virtual environment).
Create translatable file list for gettext:
make translatable
This will create a file named translatable_filelist at the project’s root.
Generate the
.potfiles for GUI using gettext:make pot
Generate the
.pofiles for the Django project and merge them with previously created.potfiles:make messages
Edit the
.pofiles in your preferred editor.Generate the
.mofiles:make mo