mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Skip untranslated msgids.
This commit is contained in:
parent
93f2924008
commit
4fa9fe3290
@ -766,6 +766,9 @@ class BuildEnvironment:
|
||||
ctx = node.parent
|
||||
patch = new_document(source, settings)
|
||||
msgstr = translation.ugettext(msg)
|
||||
#XXX add marker to untranslated parts
|
||||
if not msgstr: # as-of-yet untranslated
|
||||
continue
|
||||
parser.parse(msgstr, patch)
|
||||
assert isinstance(patch[0], nodes.paragraph)
|
||||
node.children = patch[0].children
|
||||
|
Loading…
Reference in New Issue
Block a user