I have a form and would like to translate the finisher which includes a variable.
What is the best way to do that?
identifier: 'Neos.Form:Confirmation'
options:
translation.enabled: true
translation.package: 'Vendor.SitePackage'
translation.locale: 'de'
message: >
<div class="h2">{name}, Ihre Nachricht ist angekommen.</div>
<p>Vielen Dank für die Kontaktaufnahme, ich werde mich schnellstens um Ihr Anliegen kümmern.</p>
<a href="/kontakt.html"><button>Zurück</button></a>
@newgen Thanks for the suggetion.
However, I’m not fit enough in php, so I would propably find a workaround or create a second form with an englisch finisher.
I just wondered because the form itself acutally is translatebale.
<trans-unit id="angebotsformular-danke">
<source><![CDATA[<h3>Vielen Dank!</h3><p>Wir haben Ihre Anfrage erhalten...</p>]]></source>
<target><![CDATA[<h3>Thank you!</h3><p>We have received your request...</p>]]></target>
</trans-unit>