summaryrefslogtreecommitdiff
path: root/sphinx/writers/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/text.py')
-rw-r--r--sphinx/writers/text.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py
index 12103042f..73a8f05b6 100644
--- a/sphinx/writers/text.py
+++ b/sphinx/writers/text.py
@@ -19,7 +19,7 @@ from docutils.utils import column_width
from six.moves import zip_longest
from sphinx import addnodes
-from sphinx.locale import admonitionlabels, _
+from sphinx.locale import admonitionlabels, _, __
from sphinx.util import logging
if TYPE_CHECKING:
@@ -1183,9 +1183,9 @@ class TextTranslator(nodes.NodeVisitor):
def visit_math(self, node):
# type: (nodes.Node) -> None
- logger.warning('using "math" markup without a Sphinx math extension '
- 'active, please use one of the math extensions '
- 'described at http://sphinx-doc.org/ext/math.html',
+ logger.warning(__('using "math" markup without a Sphinx math extension '
+ 'active, please use one of the math extensions '
+ 'described at http://sphinx-doc.org/ext/math.html'),
location=(self.builder.current_docname, node.line))
raise nodes.SkipNode