#28015: New argument for makemessages: --add-location=full|file|never
------------------------------------------+------------------------
Reporter: Ling-Xiao Yang | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
Refs: https://groups.google.com/forum/#!topic/django-
developers/IkrjfBDA7iE
GNU gettext has supported `--add-location=full|file|never` since March
2014, in order to ease the version control of po files:
{{{
‘--add-location=type’
Generate ‘#: filename:line’ lines (default).
The optional type can be either ‘full’, ‘file’, or ‘never’. If it is
not given or ‘full’, it generates the lines with both file name and line
number. If it is ‘file’, the line number part is omitted. If it is
‘never’, it completely suppresses the lines (same as --no-location).
}}}
Supporting commands are: msgattrib, msgcat, msgcomm, msgconv, msgen,
msgfilter, msggrep, msgmerge, msguniq, and xgettext
I'm proposing to support this argument in Django makemessages command. As
for implementation, we may simply validate the argument and pass it to
msgmerge, msguniq, msgattrib and xgettext (the commands that we use).
I'd love to make a pull request if this ticket is validated.
--
Ticket URL: <https://code.djangoproject.com/ticket/28015>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.b2a260f17bf97507fee6f34f9ea77388%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.