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/domains/python.py | |
| parent | 1f5b40c291fc9cc16c323ef6aa4cd417b929bf0f (diff) | |
| download | sphinx-git-6faef281505e1e4ba89d6af2058613d1d387dd46.tar.gz | |
Make console and warning messages translatable
Diffstat (limited to 'sphinx/domains/python.py')
| -rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 95c10d4fd..d63e5c747 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -20,7 +20,7 @@ from sphinx import addnodes, locale from sphinx.deprecation import DeprecatedDict, RemovedInSphinx30Warning from sphinx.directives import ObjectDescription from sphinx.domains import Domain, ObjType, Index -from sphinx.locale import _ +from sphinx.locale import _, __ from sphinx.roles import XRefRole from sphinx.util import logging from sphinx.util.docfields import Field, GroupedField, TypedField @@ -859,7 +859,7 @@ class PythonDomain(Domain): if not matches: return None elif len(matches) > 1: - logger.warning('more than one target found for cross-reference %r: %s', + logger.warning(__('more than one target found for cross-reference %r: %s'), target, ', '.join(match[0] for match in matches), type='ref', subtype='python', location=node) name, obj = matches[0] |
