./manage.py makemessages should let users specify input directories
|Reported by:||filipnoetzel||Owned by:|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When building an multilingual webapp using django reusable apps, one needs to translate them as well (and include the translation strings in the .po file) ..
Unfortunately ./manage.py makemessages only searches the current directory for translatable strings. Suppose, your directory setup is like
bin/ bin/activate lib/ lib/python2.6/ lib/python2.6/site-packages/ lib/python2.6/site-packages/contact_form/ lib/python2.6/site-packages/registration/ source/ source/manage.py source/settings.py source/locale/
There is no way including the needed translations for django-contact-form and django-registration in your .po-files using ./manage.py makemessages
The attached patch takes care of that by adding a "-D" flag (modeled after xgettext's -D flag - http://linux.die.net/man/1/xgettext ) that takes the input directories as parameters. If none is specified the default behaviour (searching in the current directory) is unchanged.
Change History (6)
Changed 8 years ago by