﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12201	django-admin.py makemessages could show the line number when it fails	madewulf	nobody	"For the following template file : 


{{{
<p>{%blocktrans%}Dear {{worker}}{%blocktrans%}</p>
}}}


the command django-admin.py makemessages -lfr fails (because of the non closed blocktrans tag) without telling on which file it failed. 

I just received the following, not very helpful, message : 

{{{
Traceback (most recent call last):
  File ""/usr/bin/django-admin.py"", line 5, in <module>
    management.execute_from_command_line()
  File ""/var/lib/python-support/python2.6/django/core/management/__init__.py"", line 331, in execute_from_command_line
    utility.execute()
  File ""/var/lib/python-support/python2.6/django/core/management/__init__.py"", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/var/lib/python-support/python2.6/django/core/management/base.py"", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/var/lib/python-support/python2.6/django/core/management/base.py"", line 219, in execute
    output = self.handle(*args, **options)
  File ""/var/lib/python-support/python2.6/django/core/management/commands/makemessages.py"", line 232, in handle
    make_messages(locale, domain, verbosity, process_all, extensions)
  File ""/var/lib/python-support/python2.6/django/core/management/commands/makemessages.py"", line 149, in make_messages
    open(os.path.join(dirpath, thefile), ""w"").write(templatize(src))
  File ""/var/lib/python-support/python2.6/django/utils/translation/__init__.py"", line 100, in templatize
    return real_templatize(src)
  File ""/var/lib/python-support/python2.6/django/utils/translation/trans_real.py"", line 478, in templatize
    raise SyntaxError(""Translation blocks must not include other block tags: %s"" % t.contents)
SyntaxError: Translation blocks must not include other block tags: blocktrans
}}}

It would be more helpful to tell on which file the process failed, and if possible, at which line. "		closed	Internationalization	dev		fixed			Accepted	1	1	0	0	0	0
