mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Clean up coding style for better comprehensibility.
This commit is contained in:
parent
a1f633ee03
commit
b151aa56e1
@ -201,15 +201,13 @@ class Locale(Transform):
|
||||
# fetch translations
|
||||
dirs = [path.join(env.srcdir, x)
|
||||
for x in env.config.locale_dirs]
|
||||
catalog, empty = init_locale(dirs, env.config.language, section)
|
||||
if not empty:
|
||||
catalog, has_catalog = init_locale(dirs, env.config.language, section)
|
||||
if not has_catalog:
|
||||
return
|
||||
|
||||
parser = RSTParser()
|
||||
|
||||
for node, msg in extract_messages(self.document):
|
||||
# XXX ctx not used
|
||||
#ctx = node.parent
|
||||
patch = new_document(source, settings)
|
||||
msgstr = catalog.gettext(msg)
|
||||
# XXX add marker to untranslated parts
|
||||
|
Loading…
Reference in New Issue
Block a user