This section provides step by step instructions on how to translate the user interface to your favourite language.
- Edit the file contrib\django\djangosettings.py (or bin\djangosettings.py in the binary Windows installation).
Add the language code and description to the variable LANGUAGES:LANGUAGES = ( ('nl', ugettext('Dutch')), ('en', ugettext('English')), ('fr', ugettext('French')), ('it', ugettext('Italian')), ('zh-tw', ugettext('Traditional Chinese')), )
- You’ll need to install an editor for gettext catalogs (.po files).
Highly recommended is the poedit tool, which can be downloaded fromĀ http://www.poedit.net/ - Copy the directory contrib\django\freppledb\locale\en to a new subdirectory with the name of your language code.
The possible language codes can be found onĀ http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes - Use poedit to open the files django.po and djangojs.po in the directories you just copied.
Translating the strings in the file will take a while.
Some words already have been translated by the Django project. A comment marks those and you should not translate those.
Make sure you keep the HTML in your translations valid. - You can now test the translations, after a restart of the web server.
FrePPLe will detect the language setting of your browser, so you need to configure your browser to have the new language as the preferred one. - The installer also needs updating to recognize the new language.
The files contrib\installer\parameters.ini and contrib\installer\frepple.nsi need straightforward editing.
We are very keen on receiving translations for additional languages as contributions.