From 31846a739d65951df8673a6b00128789c226d3f2 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 25 Oct 2015 01:59:07 -0400 Subject: [PATCH] Change the document OCR tab label and view title from 'Content' to 'OCR', to eliminate confusion of OCR text vs. original document content. --- mayan/apps/ocr/links.py | 2 +- mayan/apps/ocr/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/ocr/links.py b/mayan/apps/ocr/links.py index 036bcbb005..85b3abcdab 100644 --- a/mayan/apps/ocr/links.py +++ b/mayan/apps/ocr/links.py @@ -10,7 +10,7 @@ from .permissions import ( ) link_document_content = Link( - permissions=(permission_ocr_content_view,), text=_('Content'), + permissions=(permission_ocr_content_view,), text=_('OCR'), view='ocr:document_content', args='resolved_object.id' ) link_document_submit = Link( diff --git a/mayan/apps/ocr/views.py b/mayan/apps/ocr/views.py index 57bd475d64..b12f43d0c7 100644 --- a/mayan/apps/ocr/views.py +++ b/mayan/apps/ocr/views.py @@ -157,7 +157,7 @@ def document_content(request, document_id): 'hide_labels': True, 'object': document, 'read_only': True, - 'title': _('Content of document: %s') % document, + 'title': _('OCR result for document: %s') % document, }, context_instance=RequestContext(request))