We've edited django.po files but translations do not work. Why?
I'm using the ru locale and it is translated in to Russian but on my site it still appears in English.
#: utils/functions.py:82 msgid "2 days ago" msgstr "2 дня назад" #: utils/functions.py:84 msgid "yesterday" msgstr "вчера" #: utils/functions.py:87 #, python-format msgid "%(hr)d hour ago" msgid_plural "%(hr)d hours ago" msgstr "%(hr)d час назад" msgstr "%(hr)d часов назад" msgstr "%(hr)d часа назад" #: utils/functions.py:93 #, python-format msgid "%(min)d min ago" msgid_plural "%(min)d mins ago" msgstr "%(min)d минуту назад" msgstr "%(min)d минут назад" msgstr "%(min)d минуты назад"
python manage.py compilemessages
then server restart.
80% of the messeges were translated, but not the time/date messages.
I've tried to manipulate functions.py (there are the original time messages), but I then the whole site does not work
Does it work with time translation now ?
I did those steps, but the time/date is still in English
@Evgeny I translate atm the German language files. I downloaded from Transiflex the *.po Mainfile moved it to /usr/local/lib/python2.6/dist-packages/askbot/locale/de/LC_MESSAGES (renamed it to django.po). Then I run "python setup_templates/manage.py compilemessages" in "/usr/local/lib/python2.6/dist-packages/askbot", all *.po files are processing ... restart the webserver (apache with mod_wsgi) ... akbot is fully broken (500er http errors, all sites). I move my backup files back, recompile, restart webserver, still broken. Any Ideas? (Is the dev-version OK for a production usage?)
OK, after some trys with "manage.py collectstatic" "manage.py compilemessages" and "manage.py migrate" it works again. :)
To avoid other similar problems you should try choosing another localization tool. I am using [poeditor](https://poeditor.com) and I recommend it. It works very well with po files, it has a simple interface and no tangling bugs.