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
.pot
files for GUI using gettext:make pot
Generate the
.po
files for the Django project and merge them with previously created.pot
files:make messages
Edit the
.po
files in your preferred editor.Generate the
.mo
files:make mo