hooks/workflow.py
changeset 4181 c79135c217df
parent 4088 23ce2b3fb03d
child 4307 7fba9c34c88f
--- a/hooks/workflow.py	Tue Dec 22 09:27:28 2009 +0100
+++ b/hooks/workflow.py	Tue Dec 22 10:27:49 2009 +0100
@@ -224,8 +224,8 @@
                     msg = session._("transition doesn't belong to entity's workflow")
                     raise ValidationError(entity.eid, {'by_transition': msg})
                 if not tr.has_input_state(fromstate):
-                    msg = session._("transition %s isn't allowed from %s") % (
-                        _(tr.name), _(fromstate.name))
+                    msg = session._("transition %(tr)s isn't allowed from %(st)s") % {
+                        'tr': session._(tr.name), 'st': session._(fromstate.name)}
                     raise ValidationError(entity.eid, {'by_transition': msg})
                 if not tr.may_be_fired(foreid):
                     msg = session._("transition may not be fired")