#23584: makemessages only looks in the current folder
------------------------------+--------------------------
Reporter: edu2004eu | Owner: nobody
Type: Bug | Status: new
Component: Translations | Version: 1.7
Severity: Normal | Keywords: localization
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------
When running `django-admin.py makemessages` (with the appropriate
arguments), it doesn't generate po files for Javascript files which use
`gettext`. As far as I can tell, it's because in
`core/management/commands/makemessages.py` at line 304, there's `file_list
= self.find_files(".")`, which means it only looks in the current
directory (and subdirs), meaning it won't ever look in either
`STATIC_ROOT` or `STATICFILES_DIRS` (still a bit fuzzy which one is
which).
Unless there's an obvious thing I'm missing here, I'd treat this as either
one of the following:
- a bug, because it should look in JS files too
- a feature request to add a --lookup_path argument
The current workaround is to run manage.py from whatever folder you want
it to look in.
--
Ticket URL: <https://code.djangoproject.com/ticket/23584>
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/052.f9313c6f55a4108600ff71828c7803bf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.