I18N
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.
L10N
In order to perform translation to specific language (ru in example) create the language file:
Code Block |
---|
/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:
Code Block |
---|
/opt/noc# python manage.py compilemessages |
Commit django.po and resulting django.mo to the repo.
To refresh message file also use:
Code Block |
---|
/opt/noc# ./scripts/makemessages ru |