summaryrefslogtreecommitdiffstats
path: root/Doc/tools/extensions/c_annotations.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/extensions/c_annotations.py')
-rw-r--r--Doc/tools/extensions/c_annotations.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py
index 9defb24..a845ef4 100644
--- a/Doc/tools/extensions/c_annotations.py
+++ b/Doc/tools/extensions/c_annotations.py
@@ -24,6 +24,7 @@ from docutils import nodes
from docutils.parsers.rst import directives
from docutils.parsers.rst import Directive
from docutils.statemachine import StringList
+from sphinx.locale import _ as sphinx_gettext
import csv
from sphinx import addnodes
@@ -152,11 +153,11 @@ class Annotations:
elif not entry.result_type.endswith("Object*"):
continue
if entry.result_refs is None:
- rc = 'Return value: Always NULL.'
+ rc = sphinx_gettext('Return value: Always NULL.')
elif entry.result_refs:
- rc = 'Return value: New reference.'
+ rc = sphinx_gettext('Return value: New reference.')
else:
- rc = 'Return value: Borrowed reference.'
+ rc = sphinx_gettext('Return value: Borrowed reference.')
node.insert(0, nodes.emphasis(rc, rc, classes=['refcount']))