From 035ebff407ccde62778ad9661438b56ca01394db Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 9 Jan 2019 00:54:42 +0900 Subject: Make info messages more translatable --- sphinx/ext/viewcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sphinx/ext/viewcode.py') diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index a4d9e3405..61738a349 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -16,7 +16,7 @@ from docutils import nodes import sphinx from sphinx import addnodes from sphinx.deprecation import RemovedInSphinx30Warning -from sphinx.locale import _ +from sphinx.locale import _, __ from sphinx.pycode import ModuleAnalyzer from sphinx.util import get_full_modname, logging, status_iterator from sphinx.util.nodes import make_refnode @@ -158,7 +158,7 @@ def collect_pages(app): for modname, entry in status_iterator( sorted(env._viewcode_modules.items()), # type: ignore - 'highlighting module code... ', "blue", + __('highlighting module code... '), "blue", len(env._viewcode_modules), # type: ignore app.verbosity, lambda x: x[0]): if not entry: -- cgit v1.2.1