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 ?
You might have forgotten to compile the messages:
cd askbot #or wherever askbot code is actually installed python manage.py compilemessages
Note that - this works best if you have installed Askbot in the development mode (with
python setup.py develop)
Secondly - translations need to be loaded by the application in order to work. You might need to restart the server's python process or the webserver.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2012-09-16 16:47:46 -0500
Seen: 250 times
Last updated: Oct 20 '12