Questa è una vecchia versione del documento!
Problem: I have a session in few days, and my language's localization is not complete. I have already contributed new strings, but too late for them being included in time in a new release.
Solution: it is easy to provide additional localization strings in Django. Just follow these steps:
locale/LANG/LC_MESSAGES
folder, replacing LANG
with your language code (e.g. it
for Italian).django.po
) in the desired language to that folder. If your language is not supported, download another one..mo
file (this can be done from inside poedit with File
→ Compile to MO
), saved in the same folder.settings.py
, add a line with the following content:
LOCALE_PATHS = ['locale']
That's it! The strings will be shown next time you start oTree - including in Heroku (remember to git add
and git commit
the django.mo
file).