Skip to content

Translation of the TQ website

Tobias Rogg edited this page Sep 29, 2017 · 11 revisions

Use the trans tag in HTML sites for django: https://docs.djangoproject.com/en/1.10/topics/i18n/translation/#trans-template-tag

  • Run django-admin makemessages -a to create the .po files.

Works only with gettext installed

  • then after you've updated the German text in the .po file you can run

  • django-admin compilemessages

  • to compile the language files.

  • Check in the language files as well, we don't compile a second time on the live server

Mac install gettext

  1. brew install gettext
  2. and then
  3. brew link gettext --force
  • to make it work ;)