summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathbase.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-06-25 17:35:42 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-06-25 17:55:54 +0900
commit41bb5f7fd26a5d4e8c24812a47aa50f46e88eb70 (patch)
tree920a4ec7dbb5032a7f65931c12737809bff2970f /sphinx/ext/mathbase.py
parente0a1fede6dfc699aaa1a4c2682a07ffe485e6765 (diff)
downloadsphinx-git-41bb5f7fd26a5d4e8c24812a47aa50f46e88eb70.tar.gz
Fix #3833: command line messages are translated unintentionally
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r--sphinx/ext/mathbase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py
index 9ca81d738..baa4df176 100644
--- a/sphinx/ext/mathbase.py
+++ b/sphinx/ext/mathbase.py
@@ -13,7 +13,7 @@ from docutils import nodes, utils
from docutils.parsers.rst import Directive, directives
from sphinx.roles import XRefRole
-from sphinx.locale import _
+from sphinx.locale import __
from sphinx.domains import Domain
from sphinx.util.nodes import make_refnode, set_source_info
@@ -103,7 +103,7 @@ class MathDomain(Domain):
equations = self.data['objects']
if labelid in equations:
path = env.doc2path(equations[labelid][0])
- msg = _('duplicate label of equation %s, other instance in %s') % (labelid, path)
+ msg = __('duplicate label of equation %s, other instance in %s') % (labelid, path)
raise UserWarning(msg)
else:
eqno = self.get_next_equation_number(docname)