#31939 closed New feature (wontfix)
Allow to specify a custom --add-comments option to pass to xgettext in makemessages.
| Reported by: | Álvaro Mondéjar | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | dev |
| Severity: | Normal | Keywords: | i18n |
| Cc: | Álvaro Mondéjar, Claude Paroz | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Django programs that use any other language as source instead of english might find this useful.
We can use '--add-comments', '-c' as arguments of the makemessages command parser to maintain consistence with xgettext.
Change History (3)
comment:1 by , 5 years ago
| Needs documentation: | set |
|---|---|
| Needs tests: | set |
comment:2 by , 5 years ago
| Cc: | added |
|---|---|
| Component: | Core (Management commands) → Internationalization |
| Needs documentation: | unset |
| Needs tests: | unset |
| Resolution: | → wontfix |
| Status: | new → closed |
| Summary: | Allow to specify a custom --add-comments option to pass to xgettext in makemessages command → Allow to specify a custom --add-comments option to pass to xgettext in makemessages. |
comment:3 by , 5 years ago
Note you should be able to customize this rather easily by having your own makemessages command in your project (inheriting the original command and overwriting xgettext_options).
Note:
See TracTickets
for help on using tickets.
Thanks for this ticket, however comments for translators are already supported (see docs). Making an extraction keyword configurable was discussed shortly in the #10004 (see comment) and we've decided that this isn't worth adding extra complexity.