From 6d0d2ea591009dbafe1b7bd5be4fda654de8a1fe Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Wed, 19 Dec 2012 10:01:31 +0100 Subject: [PATCH] [gen] Bugfix: generate i18n label even for transitions for which show is False, because the label will be used within object's history. --- gen/generator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gen/generator.py b/gen/generator.py index 8ab1a0b..cdeb732 100644 --- a/gen/generator.py +++ b/gen/generator.py @@ -797,8 +797,7 @@ class ZopeGenerator(Generator): for name in dir(wfDescr.klass): transition = getattr(wfDescr.klass, name) if not isinstance(transition, gen.Transition): continue - if transition.show: - self.i18n('%s_%s' % (wfName, name), name) + self.i18n('%s_%s' % (wfName, name), name) if transition.show and transition.confirm: # We need to generate a label for the message that will be shown # in the confirm popup.