[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:
parent
446a2d9a16
commit
6d0d2ea591
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue