Opened 6 years ago
Closed 6 years ago
#30720 closed New feature (wontfix)
Allow specifying multiple domains for makemessages command.
| Reported by: | c v t | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Amin Mirzaee, Dheeraj Kumar Ketireddy | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
(The left-over part of #17181..)
Currently, to update / compile catalogues for both django and djangojs domains, you need to run makemessages and compilemessages twice:
django-admin.py makemessages -d django
django-admin.py makemessages -d djangojs
It would be lovely to be able to run this in one command, either:
django-admin.py makemessages -d django,djangojs
or:
django-admin.py makemessages -d django -d djangojs
(Currently, the first version gives an error; the second version silently ignores the first -d option, in this example it would just regenerate djangojs)
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
| Cc: | added |
|---|
comment:3 by , 6 years ago
| Easy pickings: | unset |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
| Summary: | allow specifying multiple domains for makemessages and compilemessages commands → Allow specifying multiple domains for makemessages command. |
| Version: | 2.2 → master |
Thanks for this ticket.
compilemessages doesn't have domain argument.
Supporting multiple domains in makemessages can still be clunky, because they handle different extensions etc. It's probably not worth to add a complexity here.
Closing for now, nevertheless, if you would like to provide a patch we can evaluate it and reopen the ticket if consensus is reached.
Apparently this was abandoned as per https://code.djangoproject.com/ticket/17181#comment:9. It may be that the current code allows an easier implementation. We would have to see a patch to judge that. Do you plan to provide one?