summaryrefslogtreecommitdiff
path: root/sphinx/transforms/i18n.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/transforms/i18n.py')
-rw-r--r--sphinx/transforms/i18n.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/sphinx/transforms/i18n.py b/sphinx/transforms/i18n.py
index 9dddce343..386c5ae39 100644
--- a/sphinx/transforms/i18n.py
+++ b/sphinx/transforms/i18n.py
@@ -18,7 +18,7 @@ from docutils.utils import relative_path
from sphinx import addnodes
from sphinx.domains.std import make_glossary_term, split_term_classifiers
-from sphinx.locale import init as init_locale
+from sphinx.locale import __, init as init_locale
from sphinx.transforms import SphinxTransform
from sphinx.util import split_index_msg, logging
from sphinx.util.i18n import find_catalog
@@ -274,8 +274,8 @@ class Locale(SphinxTransform):
if len(old_foot_refs) != len(new_foot_refs):
old_foot_ref_rawsources = [ref.rawsource for ref in old_foot_refs]
new_foot_ref_rawsources = [ref.rawsource for ref in new_foot_refs]
- logger.warning('inconsistent footnote references in translated message.' +
- ' original: {0}, translated: {1}'
+ logger.warning(__('inconsistent footnote references in translated message.' +
+ ' original: {0}, translated: {1}')
.format(old_foot_ref_rawsources, new_foot_ref_rawsources),
location=node)
old_foot_namerefs = {} # type: Dict[unicode, List[nodes.footnote_reference]]
@@ -314,8 +314,8 @@ class Locale(SphinxTransform):
if len(old_refs) != len(new_refs):
old_ref_rawsources = [ref.rawsource for ref in old_refs]
new_ref_rawsources = [ref.rawsource for ref in new_refs]
- logger.warning('inconsistent references in translated message.' +
- ' original: {0}, translated: {1}'
+ logger.warning(__('inconsistent references in translated message.' +
+ ' original: {0}, translated: {1}')
.format(old_ref_rawsources, new_ref_rawsources),
location=node)
old_ref_names = [r['refname'] for r in old_refs]
@@ -345,8 +345,8 @@ class Locale(SphinxTransform):
if len(old_foot_refs) != len(new_foot_refs):
old_foot_ref_rawsources = [ref.rawsource for ref in old_foot_refs]
new_foot_ref_rawsources = [ref.rawsource for ref in new_foot_refs]
- logger.warning('inconsistent footnote references in translated message.' +
- ' original: {0}, translated: {1}'
+ logger.warning(__('inconsistent footnote references in translated message.' +
+ ' original: {0}, translated: {1}')
.format(old_foot_ref_rawsources, new_foot_ref_rawsources),
location=node)
for old in old_foot_refs:
@@ -367,8 +367,8 @@ class Locale(SphinxTransform):
if len(old_cite_refs) != len(new_cite_refs):
old_cite_ref_rawsources = [ref.rawsource for ref in old_cite_refs]
new_cite_ref_rawsources = [ref.rawsource for ref in new_cite_refs]
- logger.warning('inconsistent citation references in translated message.' +
- ' original: {0}, translated: {1}'
+ logger.warning(__('inconsistent citation references in translated message.' +
+ ' original: {0}, translated: {1}')
.format(old_cite_ref_rawsources, new_cite_ref_rawsources),
location=node)
for old in old_cite_refs:
@@ -387,8 +387,8 @@ class Locale(SphinxTransform):
if len(old_refs) != len(new_refs):
old_ref_rawsources = [ref.rawsource for ref in old_refs]
new_ref_rawsources = [ref.rawsource for ref in new_refs]
- logger.warning('inconsistent term references in translated message.' +
- ' original: {0}, translated: {1}'
+ logger.warning(__('inconsistent term references in translated message.' +
+ ' original: {0}, translated: {1}')
.format(old_ref_rawsources, new_ref_rawsources),
location=node)