diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-06-25 17:35:42 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-06-25 17:55:54 +0900 |
commit | 41bb5f7fd26a5d4e8c24812a47aa50f46e88eb70 (patch) | |
tree | 920a4ec7dbb5032a7f65931c12737809bff2970f /sphinx/events.py | |
parent | e0a1fede6dfc699aaa1a4c2682a07ffe485e6765 (diff) | |
download | sphinx-git-41bb5f7fd26a5d4e8c24812a47aa50f46e88eb70.tar.gz |
Fix #3833: command line messages are translated unintentionally
Diffstat (limited to 'sphinx/events.py')
-rw-r--r-- | sphinx/events.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/events.py b/sphinx/events.py index 23353dfdb..99decfff5 100644 --- a/sphinx/events.py +++ b/sphinx/events.py @@ -17,7 +17,7 @@ from collections import OrderedDict, defaultdict from six import itervalues from sphinx.errors import ExtensionError -from sphinx.locale import _ +from sphinx.locale import __ if False: # For type annotation @@ -54,13 +54,13 @@ class EventManager(object): def add(self, name): # type: (unicode) -> None if name in self.events: - raise ExtensionError(_('Event %r already present') % name) + raise ExtensionError(__('Event %r already present') % name) self.events[name] = '' def connect(self, name, callback): # type: (unicode, Callable) -> int if name not in self.events: - raise ExtensionError(_('Unknown event name: %s') % name) + raise ExtensionError(__('Unknown event name: %s') % name) listener_id = self.next_listener_id self.next_listener_id += 1 |