2

I want to set a translation for my Typo3 template. But I want a translation with {f:translate ...} of a string within a inline viewhelper like this.

{f:if(condition:"{change.newValue}", then : '{change.newValue}', else:
"{f:translate (key:'pdvcalls_form_fields.deleted_close_date')}")}

But this is not working. Has anyone a idea what I am doing wrong?

Thanks for your help!

andreas
  • 16,357
  • 12
  • 72
  • 76
Sebastian Rieger
  • 685
  • 5
  • 20

1 Answers1

1

You have an extra space before the function paratheses.

{f:if(condition:"{change.newValue}", then : '{change.newValue}', else:
"{f:translate(key:'pdvcalls_form_fields.deleted_close_date')}")}
sven
  • 609
  • 5
  • 14