asked 2012-04-20 00:10:04 -0500Basel Shishani
According to this question
jinja2_makemessages is supposed to work fine with templates. But in my latest update from the Github repo I'm noticing that some strings are being skipped. For example the sort by button labels on questions page: 'by date', 'by activity', 'by answers', 'by votes'.
Am I doing something wrong?! I'm just doing the same thing I used to do before:
python /path/to/manage.py jinja2_makemessages -l xx -e html,py,txt
It does miss those messages when used in a specific way in the jinja2 templates. To work around this problem, the messages are added to file
askbot/const/messages.py there is only about a dozen of messages like these.
At some point I've changed "votes" -> "by votes" etc, to make them different from simply "votes" (sometimes you need both in the language files) and forgot to update the
So now they are not missed.
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-04-20 00:10:04 -0500
Seen: 82 times
Last updated: Apr 21 '12