[gen] Bugfix: generate i18n label even for transitions for which show is False, because the label will be used within object's history.

This commit is contained in:
Gaetan Delannay 2012-12-19 10:01:31 +01:00
parent 446a2d9a16
commit 6d0d2ea591

View file

@ -797,7 +797,6 @@ 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)
if transition.show and transition.confirm:
# We need to generate a label for the message that will be shown