#29797: Allow the makemessages command to accept a directory to operate on like
xgettext does
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
terencehonles |
Type: New | Status: new
feature |
Component: Core | Version: 2.1
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
PR: https://github.com/django/django/pull/10422
Use case:
{{{
REPO_ROOT
|-- manage.py
|-- app/
| `-- ...
`-- .venv/
`-- ...
}}}
When ".venv" or another adjacent directory has a bad utf-8 marker or code
that would cause xgettext to fail the management command cannot succeed.
The workaround right now is to "cd" into the django_app and run
"../mange.py" so the current directory is now the django_app and
makemessages will properly exclude the other directories. Gettext has an
options "-D" or "--directory" which changes the directory to recurse from
the current directory to the specified directory. The patch linked adds
that option and walks that directory instead of the current directory from
the makemessages command.
--
Ticket URL: <https://code.djangoproject.com/ticket/29797>
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/056.1cd64e442a63174e3965b26084bb382f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.