Use shorter confirmation messages.

This commit is contained in:
Roberto Rosario
2015-07-17 19:52:17 -04:00
parent 9288f3c903
commit afe6644321
11 changed files with 36 additions and 56 deletions

View File

@@ -62,9 +62,9 @@ def comment_delete(request, comment_id=None, comment_id_list=None):
}
if len(comments) == 1:
context['object'] = comments[0].content_object
context['title'] = _('Are you sure you wish to delete the comment: %s?') % ', '.join([unicode(d) for d in comments])
context['title'] = _('Delete comment?')
elif len(comments) > 1:
context['title'] = _('Are you sure you wish to delete the comments: %s?') % ', '.join([unicode(d) for d in comments])
context['title'] = _('Delete comments?')
return render_to_response('appearance/generic_confirm.html', context,
context_instance=RequestContext(request))