UI/CodeDocumentationViewerTemplate.py

changeset 5942
8b083e33c51f
parent 5919
d0de2b378b24
child 5960
be837f440186
--- 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">

eric ide

mercurial