Language switching

How to translate this application

  1. Generate new translation files;

  2. Notice which *po files changed;

  3. Send them to translators;

    Any translation program that can handle gettext files, eg: https://poedit.net/.

  4. Update any *po file.

How to add new languages

To add new language add it to the LANGUAGE setting in config/settings/common.py file.

And then generate new translation file. Start shell in the container ./dev.sh bash and then do following:

  • cd /app
  • ./manage.py makemessages --locale <locale code> — this will extract strings from all applications.
  • cd www/templates
  • ./manage.py makemessages --locale <locale code> — this will extract strings from templa

And then translate new files.

How does language detection work

Language is detected using standard HTTP headers.