manage.py makemessages anlalyses lib/python in virtualenv
|Reported by:||g1234@…||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When working with virtualenv to develop django application there is the lib subdirectory under the project root with the whole django installation.
python manage.py makemessages --all
will recurse into all subdirectories under the project root and also into the lib subdirectory. Because of this it will try to generate .po files for all messages in the whole django installation, not only in the project or app developed.
It takes very long to generate all those messages, even worse it breaks the run because of errormesseges from makemessages. Also it makes very big .po files with alot of messages to translate.
It at least should be optional to scan apps outside the project.
Workaround: Move the lib and the local subdirectories out of the way before running ./manage.py makemessages. For example mv lib ..; mv local ..; But then the hole django installation is not working any more. This workaround is working only if the developing computer has also a python and django installation in the /usr path which than can do the makemessages. Probably that is a different version of python and/or django than the one in the virtualenv.