Language switching¶
Making this application translatable¶
Wherever you add a new user visible string mark it for translation,
How to translate this application¶
Generate new translation files;
Notice which
*pofiles changed;Send them to translators;
Any translation program that can handle
gettextfiles, eg: https://poedit.net/.Update any
*pofile.
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.