mirror of
https://github.com/torproject/lego.git
synced 2024-11-23 09:39:44 +00:00
Patch i18n plugin
This commit is contained in:
parent
3361e2595e
commit
4cb4064486
@ -271,7 +271,7 @@ class I18NPlugin(Plugin):
|
||||
)
|
||||
|
||||
if isinstance(field.type, FlowType):
|
||||
if sections.has_key(field.name):
|
||||
if field.name in sections:
|
||||
section = sections[field.name]
|
||||
for blockname, blockvalue in process_flowblock_data("".join(section)):
|
||||
flowblockmodel = source.pad.db.flowblocks[blockname]
|
||||
@ -426,5 +426,3 @@ class I18NPlugin(Plugin):
|
||||
for language in self.translations_languages:
|
||||
po_file=POFile(language, self.i18npath)
|
||||
po_file.generate()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user