Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Benoit, that may be true (but I think I've updated that in the master branch). Here is what you can do:

Upgrade the code if appropriate at this stage (it actually may be necessary, because I've added the jinja2 string extractor recently).

Go to your project directory with the settings.py and copy an existing english catalog from askbot locale to your project:

mkdir locale/en/LC_MESSAGES/
cp askbot/locale/en/LC_MESSAGES/django.po locale/en/LC_MESSAGES
python manage.py jinja2_makemessages -l en -e html,py,txt

This way you'll get your own copy of messages that you can edit without the need of merging with the canned messages. Maybe it's just me, but I find merging .po files very tedious. Since the project directory is outside of askbot's git repository, there won't be any conflicts.

If you have any problems, of course give some feedback. The jinja2_makemessages may not work if you have other django apps that use django templating engine, I have not tested that scenario yet.

Hi Benoit, that may be is true (but for the previous version but I think I've updated that in the master branch). branch. Here is what you can do:

Upgrade the code if appropriate at this stage (it actually may be necessary, because I've added the jinja2 string extractor recently).

Go to your project directory with the settings.py and copy an existing english catalog from askbot locale to your project:

mkdir locale/en/LC_MESSAGES/
cp askbot/locale/en/LC_MESSAGES/django.po locale/en/LC_MESSAGES
python manage.py jinja2_makemessages -l en -e html,py,txt

This way you'll get your own copy of messages that you can edit without the need of merging with the canned messages. Maybe it's just me, but I find merging .po files very tedious. Since the project directory is outside of askbot's git repository, there won't be any conflicts.

If you have any problems, of course give some feedback. The jinja2_makemessages may not work if you have other django apps that use django templating engine, I have not tested that scenario yet.

Hi Benoit, that is true for the previous version versions but I think I've updated that in the master branch. Here is what you can do:

Upgrade the code if appropriate at this stage (it actually may be necessary, because I've added the jinja2 string extractor recently).

Go to your project directory with the settings.py and copy an existing english catalog from askbot locale to your project:

mkdir locale/en/LC_MESSAGES/
cp askbot/locale/en/LC_MESSAGES/django.po locale/en/LC_MESSAGES
python manage.py jinja2_makemessages -l en -e html,py,txt

This way you'll get your own copy of messages that you can edit without the need of merging with the canned messages. Maybe it's just me, but I find merging .po files very tedious. Since the project directory is outside of askbot's git repository, there won't be any conflicts.

If you have any problems, of course give some feedback. The jinja2_makemessages may not work if you have other django apps that use django templating engine, I have not tested that scenario yet.