#22328 closed New feature (fixed)
Add --exclude option to compilemessages
Reported by: | Ana Krivokapic | Owned by: | Ana Krivokapic |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | loic@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Add an option to the compilemessages management command, to enable exclusion of specific locales.
E.g:
python manage.py compilemessages --exclude fr --exclude es
would compile all the languages except for French and Spanish.
Change History (7)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
comment:2 by , 11 years ago
Version: | 1.6 → master |
---|
comment:3 by , 11 years ago
Has patch: | set |
---|
comment:4 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:5 by , 11 years ago
Cc: | added |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed in 0707b824fe77e08ca8b75fcc3738ada694f2a3a6.
comment:6 by , 11 years ago
The -e
shorthand introduced for makemessages --exclude
caused a regression due to a conflict with the existing makemessages --extensions
.
Refs https://groups.google.com/d/topic/django-developers/a7jksjMWmbY/discussion.
Backward compatible options are:
- no shorthand at all for the two commands.
- no shorthand for
makemessages
. - change both shorthands to -x (eXclude).
I went with option 3 in https://github.com/django/django/pull/2621, feedback welcome.
https://github.com/infraredgirl/django/tree/ticket_22328