We can use '--add-comments', '-c' as arguments of the makemessages command
parser to maintain consistence with xgettext.
--
Ticket URL: <https://code.djangoproject.com/ticket/31939>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31939#comment:1>
* status: new => closed
* cc: Claude Paroz (added)
* component: Core (Management commands) => Internationalization
* needs_tests: 1 => 0
* needs_docs: 1 => 0
* resolution: => wontfix
Comment:
Thanks for this ticket, however comments for translators are already
supported (see
[https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#comments-
for-translators docs]). Making an extraction keyword configurable was
discussed shortly in the #10004 (see
[https://code.djangoproject.com/ticket/10004#comment:12 comment]) and
we've decided that this isn't worth adding extra complexity.
--
Ticket URL: <https://code.djangoproject.com/ticket/31939#comment:2>
Comment (by Claude Paroz):
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`).
--
Ticket URL: <https://code.djangoproject.com/ticket/31939#comment:3>