summaryrefslogtreecommitdiff
path: root/sphinx/builders/manpage.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-25 22:16:09 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-03 23:18:38 +0900
commit6faef281505e1e4ba89d6af2058613d1d387dd46 (patch)
tree4734fe29d42042ee9bb0fab69087c8ffeb224e73 /sphinx/builders/manpage.py
parent1f5b40c291fc9cc16c323ef6aa4cd417b929bf0f (diff)
downloadsphinx-git-6faef281505e1e4ba89d6af2058613d1d387dd46.tar.gz
Make console and warning messages translatable
Diffstat (limited to 'sphinx/builders/manpage.py')
-rw-r--r--sphinx/builders/manpage.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py
index fb7c15ac5..e1bbcffa8 100644
--- a/sphinx/builders/manpage.py
+++ b/sphinx/builders/manpage.py
@@ -19,6 +19,7 @@ from six import string_types
from sphinx import addnodes
from sphinx.builders import Builder
from sphinx.environment import NoUri
+from sphinx.locale import __
from sphinx.util import logging
from sphinx.util.console import bold, darkgreen # type: ignore
from sphinx.util.nodes import inline_all_toctrees
@@ -39,7 +40,7 @@ class ManualPageBuilder(Builder):
"""
name = 'man'
format = 'man'
- epilog = 'The manual pages are in %(outdir)s.'
+ epilog = __('The manual pages are in %(outdir)s.')
default_translator_class = ManualPageTranslator
supported_image_types = [] # type: List[unicode]
@@ -47,8 +48,8 @@ class ManualPageBuilder(Builder):
def init(self):
# type: () -> None
if not self.config.man_pages:
- logger.warning('no "man_pages" config value found; no manual pages '
- 'will be written')
+ logger.warning(__('no "man_pages" config value found; no manual pages '
+ 'will be written'))
def get_outdated_docs(self):
# type: () -> Union[unicode, List[unicode]]
@@ -68,7 +69,7 @@ class ManualPageBuilder(Builder):
components=(docwriter,),
read_config_files=True).get_default_values()
- logger.info(bold('writing... '), nonl=True)
+ logger.info(bold(__('writing... ')), nonl=True)
for info in self.config.man_pages:
docname, name, description, authors, section = info