workflows: translate logged errors messages of create formdata action (#42102)

This commit is contained in:
Benjamin Dauvergne 2020-04-27 11:37:20 +02:00 committed by Frédéric Péters
parent eeedc29c44
commit 84c72bd320
1 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ class CreateFormdataWorkflowStatusItem(WorkflowStatusItem):
field=dest_field,
value=src.data.get(field.id))
except Exception as e:
LoggedError.record('Could not copy field by varname for %s' % field.varname,
LoggedError.record(_('Could not copy field by varname for "%s"') % field.varname,
formdata=src, status_item=self, exception=e)
# field.id can be serialized to xml, so we must always convert them to
@ -390,7 +390,7 @@ class CreateFormdataWorkflowStatusItem(WorkflowStatusItem):
value=value)
except Exception as e:
expression = self.get_expression(mapping.expression)
LoggedError.record('Could not assign value to field %s' % dest_field,
LoggedError.record(_('Could not assign value to field "%s"') % dest_field.label,
formdata=src, status_item=self,
expression=expression['value'], expression_type=expression['type'],
exception=e)