Strings in python modules and HTML templates must be marked
in order to be translated to different languages. Please refer
to the excelleng Django's internationalization reference
for details.


In order to perform translation to specific language (ru in example) create the language file:

/opt/noc# ./scripts/makemessages ru

Resulting language file will be placed into locale/_ru_/LC_MESSAGES/django.po

Edit the message file and compile it:

/opt/noc# python manage.py compilemessages

Commit django.po and resulting django.mo to the repo.

To refresh message file also use:

/opt/noc# ./scripts/makemessages ru
  • No labels