How can I generate messages (manage.py makemessages) from 3rd party library which is located in virtualenv directory?
I tried simply add the messages to the .po file, but everytime I run makemessages command my translation vanishes.
Many thanks
How can I generate messages (manage.py makemessages) from 3rd party library which is located in virtualenv directory?
I tried simply add the messages to the .po file, but everytime I run makemessages command my translation vanishes.
Many thanks
manage.py makemessages
looks only for directories under the current dir. So you have to create symlink from 3rd party app to your project's directory:Note the
-s
option. It forcesmakemessages
to follow symlinks.The other caveat is if the
app
is already localized then.po
file will be created underapp/locale/cz
directory instead of yourlocale
.