Improve document related views titles messages, improve pluralization.

This commit is contained in:
Roberto Rosario
2015-01-24 14:25:31 -04:00
parent 806b608177
commit febe21db1b
10 changed files with 50 additions and 39 deletions

View File

@@ -104,7 +104,7 @@ def comment_add(request, document_id):
return render_to_response('main/generic_form.html', {
'form': form,
'title': _('Add comment to document'),
'title': _('Add comment to document: %s') % document,
'next': next,
'object': document,
}, context_instance=RequestContext(request))
@@ -124,7 +124,7 @@ def comments_for_document(request, document_id):
return render_to_response('main/generic_list.html', {
'object': document,
'access_object': document,
'title': _('Document comments'),
'title': _('Comments for document: %s') % document,
'object_list': Comment.objects.for_model(document).order_by('-submit_date'),
'hide_link': True,
'hide_object': True,