wf/jump: string with named arguments (i18n)

This commit is contained in:
Thomas NOËL 2013-06-14 16:22:15 +02:00
parent f754a0e39e
commit e5c7cfc916
1 changed files with 3 additions and 2 deletions

View File

@ -121,8 +121,9 @@ class JumpWorkflowStatusItem(WorkflowStatusJumpItem):
reasons.append(_('timeout'))
if reasons:
return _('Change Status Automatically (to %s) (%s)') % (
wf_status.name, ', '.join(reasons))
return _('Change Status Automatically (to %(name)s) (%(reasons)s)') % {
'name': wf_status.name,
'reasons': ', '.join(reasons)}
else:
return _('Change Status Automatically (to %s)') % wf_status.name