--- a/UI/CodeDocumentationViewerTemplate.py Thu Nov 02 11:19:20 2017 +0100 +++ b/UI/CodeDocumentationViewerTemplate.py Thu Nov 02 16:50:06 2017 +0100 @@ -55,13 +55,15 @@ </div> """ - argspecTemplate = """ - <p><b>Definition:</b> <span class="def">@NAME@@ARGSPEC@</span></p> - """ + argspecTemplate = QCoreApplication.translate( + "CodeDocumentationViewer", + '<p><b>Definition:</b> <span class="def">@NAME@@ARGSPEC@</span></p>', + "Just translate 'Definition:' and leave the rest intact.") - noteTemplate = """ - <p><b>Type:</b> @NOTE@</p> - """ + noteTemplate = QCoreApplication.translate( + "CodeDocumentationViewer", + "<p><b>Note:</b> @NOTE@</p>", + "Just translate 'Note:' and leave the rest intact.") docstringTemplate = """ <div class="docstring">