Hallo,
I can’t get the translation of the subject of the email finisher working. In my contact-form.yaml I wrote this:
(...)
finishers:
-
identifier: 'Vendor.Site:CustomRedirect'
options:
uri: 'kontakt/vielen-dank.html'
-
identifier: 'Neos.Form:Email'
options:
templatePathAndFilename: resource://Vendor.Site/Private/Templates/Email/Contact.txt
subject: 'Anfrage über Kontaktformular'
recipientAddress: info@xyz.de
recipientName: 'xyz'
senderAddress: noreply@xyz.de
senderName: xyz
replyToAddress: info@xyz.de
format: plaintext
-
identifier: 'Neos.Form:Email'
options:
templatePathAndFilename: resource://Vendor.Site/Private/Templates/Email/Copy.txt
subject: 'Your request'
recipientAddress: '{Email}'
recipientName: '{Forename} {Lastname}'
senderAddress: noreply@xyz.de
senderName: xyz
replyToAddress: info@xyz.de
format: plaintext
translation.enabled: true
translation.package: 'Vendor.Site'
translation.locale: 'en'
translation.source: 'Main'
In my /Resources/Private/Translations/en/Main.xlf I wrote:
(...)
<trans-unit id="forms.emailFinisher.2.subject" xml:space="preserve">
<source>Your request</source>
</trans-unit>
And in my /Resources/Private/Translations/de/Main.xlf I wrote:
(...)
<trans-unit id="forms.emailFinisher.2.subject" xml:space="preserve" approved="yes">
<source>Your request</source>
<target xml:lang="de">Ihre Anfrage</target>
</trans-unit>
Here I read that in forms.emailFinisher.{identifier}.subject the {identifier} is the position of the finisher in the finisher-set, so this should be 2 in my case (it’s the last finisher in my finisher set and there are two finishers before as you can see above).
What I’m doing wrong?