#10234: makemessages.py SyntaxErrors are hard to track because they don't say
which
template or file it happened in
----------------------------------+-----------------------------------------
Reporter: peterbe | Owner: nobody
Status: new | Milestone:
Component: Internationalization | Version: SVN
Keywords: django-admin | Stage: Unreviewed
Has_patch: 1 |
----------------------------------+-----------------------------------------
I ran `django-admin.py makemessages -l sv` and it turns out that I had
forgotten the 'end' on {% endblocktrans %} so it threw this error:
{{{
SyntaxError: Translation blocks must not include other block tags:
blocktrans
}}}
If you have many files with blocktrans in them it's hard to know where
you've make the syntax error.
I patched makemessages.py to also include the filename into error message.
Now the error message looks like this instead:
{{{
SyntaxError: Translation blocks must not include other block tags:
blocktrans (file: ./search/templates/500.html)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/10234>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---