Collecting messages from 3rd party apps in Django

冷暖自知 提交于 2019-12-04 07:51:10

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:

ln -s ~/.virtualenvs/myvenv/local/lib/python2.7/site-packages/app app
mkdir locale
python manage.py makemessages -l cz -s

Note the -s option. It forces makemessages to follow symlinks.

The other caveat is if the app is already localized then .po file will be created under app/locale/cz directory instead of your locale.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!