[tor-commits] [lego/master] Patch i18n plugin
hiro at torproject.org
hiro at torproject.org
Wed Feb 17 14:50:46 UTC 2021
commit 4cb4064486b300f04573b4dde54afa6835dafa63
Author: hiro <hiro at torproject.org>
Date: Wed Feb 17 15:50:40 2021 +0100
Patch i18n plugin
---
packages/i18n/lektor_i18n.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/packages/i18n/lektor_i18n.py b/packages/i18n/lektor_i18n.py
index 4b4aca2..34fa20a 100644
--- a/packages/i18n/lektor_i18n.py
+++ b/packages/i18n/lektor_i18n.py
@@ -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()
-
-
More information about the tor-commits
mailing list