Clean up coding style for better comprehensibility.

This commit is contained in:
Robert Lehmann 2010-11-13 12:49:39 +01:00
parent a1f633ee03
commit b151aa56e1

View File

@ -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