summaryrefslogtreecommitdiff
path: root/sphinx/builders/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/builders/text.py')
-rw-r--r--sphinx/builders/text.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/builders/text.py b/sphinx/builders/text.py
index babb6ccee..81209d165 100644
--- a/sphinx/builders/text.py
+++ b/sphinx/builders/text.py
@@ -15,6 +15,7 @@ from os import path
from docutils.io import StringOutput
from sphinx.builders import Builder
+from sphinx.locale import __
from sphinx.util import logging
from sphinx.util.osutil import ensuredir, os_path
from sphinx.writers.text import TextWriter, TextTranslator
@@ -31,7 +32,7 @@ logger = logging.getLogger(__name__)
class TextBuilder(Builder):
name = 'text'
format = 'text'
- epilog = 'The text files are in %(outdir)s.'
+ epilog = __('The text files are in %(outdir)s.')
out_suffix = '.txt'
allow_parallel = True
@@ -84,7 +85,7 @@ class TextBuilder(Builder):
with codecs.open(outfilename, 'w', 'utf-8') as f: # type: ignore
f.write(self.writer.output)
except (IOError, OSError) as err:
- logger.warning("error writing file %s: %s", outfilename, err)
+ logger.warning(__("error writing file %s: %s"), outfilename, err)
def finish(self):
# type: () -> None