mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-14 09:22:11 -05:00
Ignore translations which fall back to NullTranslations.
This commit is contained in:
1 parent
4fa9fe3290
commit
583f4a100e
1 file changed
+1
-1
@@ -767,7 +767,7 @@ class BuildEnvironment:
|
||||
patch = new_document(source, settings)
|
||||
msgstr = translation.ugettext(msg)
|
||||
#XXX add marker to untranslated parts
|
||||
if not msgstr: # as-of-yet untranslated
|
||||
if not msgstr or msgstr == msg: # as-of-yet untranslated
|
||||
continue
|
||||
parser.parse(msgstr, patch)
|
||||
assert isinstance(patch[0], nodes.paragraph)
|
||||
|
||||
Reference in new issue
Block a user