Nico,
We do not have any translations in production yet, so this is a new process for everyone. I tested the following workflow in my development environment and I was able to see translated strings appear in the application.
1) Install the translation tools
$ sudo apt-get install gettext
2) Generate .po files
$ cd {{ path to otm-core }}/opentreemap && ./manage.py makemessages --locale it
$ cd {{ path to otm-core }}/opentreemap/treemap && ../manage.py makemessages --locale it
3) Translate the .po files.
Fill in msgstr values in {{ path to otm-core }}/opentreemap/locale/it/LC_MESSAGES/django.po
Fill in msgstr values in {{ path to otm-core }}/opentreemap/treemap/locale/it/LC_MESSAGES/django.po
You can use a plain text editor, or use one of several graphical tools to edit these files. I do not have experience with any of the graphical tools, so I cannot speak to their quality, but both of these offer Windows versions
4) Compile the .po files into .mo files
$ cd {{ path to otm-core }}/opentreemap && ./manage.py compilemessages
$ cd {{ path to otm-core }}/opentreemap/treemap && ../manage.py compilemessages
5) Set the default language and disable automatic language detection
Edit {{ path to otm-core }}/opentreemap/opentreemap/settings/default_settings.py and make the following changes
5.1) Set the language code to Italian
LANGUAGE_CODE = ‘it-IT'
5.2) Disable language detection by commenting out LocaleMiddleware within the MIDDLEWARE_CLASSES tuple.
MIDDLEWARE_CLASSES = (
...
# 'django.middleware.locale.LocaleMiddleware',
...
)
6) Restart gunicorn so the settings file is reloaded.