diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-25 22:16:09 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-03 23:18:38 +0900 |
commit | 6faef281505e1e4ba89d6af2058613d1d387dd46 (patch) | |
tree | 4734fe29d42042ee9bb0fab69087c8ffeb224e73 /sphinx/builders/devhelp.py | |
parent | 1f5b40c291fc9cc16c323ef6aa4cd417b929bf0f (diff) | |
download | sphinx-git-6faef281505e1e4ba89d6af2058613d1d387dd46.tar.gz |
Make console and warning messages translatable
Diffstat (limited to 'sphinx/builders/devhelp.py')
-rw-r--r-- | sphinx/builders/devhelp.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sphinx/builders/devhelp.py b/sphinx/builders/devhelp.py index 4e204eabb..f1511b564 100644 --- a/sphinx/builders/devhelp.py +++ b/sphinx/builders/devhelp.py @@ -22,6 +22,7 @@ from docutils import nodes from sphinx import addnodes from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.environment.adapters.indexentries import IndexEntries +from sphinx.locale import __ from sphinx.util import logging from sphinx.util.osutil import make_filename @@ -43,10 +44,10 @@ class DevhelpBuilder(StandaloneHTMLBuilder): Builder that also outputs GNOME Devhelp file. """ name = 'devhelp' - epilog = ('To view the help file:\n' - '$ mkdir -p $HOME/.local/share/devhelp/%(project)s\n' - '$ ln -s %(outdir)s $HOME/.local/share/devhelp/%(project)s\n' - '$ devhelp') + epilog = __('To view the help file:\n' + '$ mkdir -p $HOME/.local/share/devhelp/%(project)s\n' + '$ ln -s %(outdir)s $HOME/.local/share/devhelp/%(project)s\n' + '$ devhelp') # don't copy the reST source copysource = False @@ -69,7 +70,7 @@ class DevhelpBuilder(StandaloneHTMLBuilder): def build_devhelp(self, outdir, outname): # type: (unicode, unicode) -> None - logger.info('dumping devhelp index...') + logger.info(__('dumping devhelp index...')) # Basic info root = etree.Element('book', |