Commit a2c16f8d authored by Michal Čihař's avatar Michal Čihař

List failed checks in error message

This gives user better visual feedback what went wrong.
parent cfda8370
......@@ -308,7 +308,13 @@ def handle_translate(translation, request, user_locked,
# Show message to user
messages.error(
request,
_('Some checks have failed on your translation!')
_(
'Some checks have failed on your translation: {0}'
).format(
', '.join(
[unicode(CHECKS[check].name) for check in newchecks]
)
)
)
# Stay on same entry
return HttpResponseRedirect(this_unit_url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment