summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-04 02:25:12 +0900
committerGitHub <noreply@github.com>2018-03-04 02:25:12 +0900
commit95b53a6312f965ecfbf9cb25acb5a2a23b050e5f (patch)
tree6568126e24ba52618b4230798a76340e1ce9f267 /sphinx/directives/code.py
parent84c475b490e62e07a920d2e67497c51073b29bce (diff)
parentf89c7f31e80fbdeb4cbf8e7c91cb14657e60a97b (diff)
downloadsphinx-git-95b53a6312f965ecfbf9cb25acb5a2a23b050e5f.tar.gz
Merge branch 'master' into dont_stringify_exceptions
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index 48d87fb93..e26e93cd2 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -127,7 +127,7 @@ class CodeBlock(Directive):
nlines = len(self.content)
hl_lines = parselinenos(linespec, nlines)
if any(i >= nlines for i in hl_lines):
- logger.warning('line number spec is out of range(1-%d): %r' %
+ logger.warning(__('line number spec is out of range(1-%d): %r') %
(nlines, self.options['emphasize-lines']),
location=location)
@@ -269,7 +269,7 @@ class LiteralIncludeReader(object):
if linespec:
linelist = parselinenos(linespec, len(lines))
if any(i >= len(lines) for i in linelist):
- logger.warning('line number spec is out of range(1-%d): %r' %
+ logger.warning(__('line number spec is out of range(1-%d): %r') %
(len(lines), linespec), location=location)
if 'lineno-match' in self.options:
@@ -441,7 +441,7 @@ class LiteralInclude(Directive):
if 'emphasize-lines' in self.options:
hl_lines = parselinenos(self.options['emphasize-lines'], lines)
if any(i >= lines for i in hl_lines):
- logger.warning('line number spec is out of range(1-%d): %r' %
+ logger.warning(__('line number spec is out of range(1-%d): %r') %
(lines, self.options['emphasize-lines']),
location=location)
extra_args['hl_lines'] = [x + 1 for x in hl_lines if x < lines]