#26940: django-admin makemessages vs. manage.py makemessages
--------------------------------------+--------------------------
Reporter: romeroqj | Owner: nobody
Type: Uncategorized | Status: new
Component: Internationalization | Version: 1.9
Severity: Normal | Keywords: translations
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------------
'''django-admin''' and '''manage.py''' are supposed to be interchangeable.
From the docs(https://docs.djangoproject.com/en/1.9/ref/django-admin/):
''The command-line examples throughout this document use django-admin to
be consistent, but any example can use manage.py or python -m django just
as well.''
However, this doesn't seem to be true for ''makemessages''.
If I run ''manage.py makemessages'' from the top level of the project
MEDIA_ROOT and STATIC_ROOT are ignored. This isn't precisely a bug because
that's what the code is intended to do
(https://github.com/django/django/blob/master/django/core/management/commands/makemessages.py#L448),
but I find it strange specially for ''--domain djangojs'' because is very
common for Javascript files to be put in STATIC_ROOT.
django-admin makemessages doesn't ignore MEDIA_ROOT or STATIC_ROOT and it
traverses the entire source tree.
At least this should be explained in the documentation. At best both
commands should do the exact same. It's very easy to be bitten by this as
we don't always review the resulting *.po file.
Am I missing something here?
--
Ticket URL: <https://code.djangoproject.com/ticket/26940>
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/051.815618bc7af495edf59162ff3de395ea%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.