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).

  1. Create translatable file list for gettext:

    make translatable

This will create a file named translatable_filelist at the project’s root.

  1. Generate the .pot files for GUI using gettext:

    make pot
  2. Generate the .po files for the Django project and merge them with previously created .pot files:

    make messages
  3. Edit the .po files in your preferred editor.

  4. Generate the .mo files:

    make mo