Reputation: 13
Normally i have the label which has only 1 value. How can I define and translate renderables within my kontakt.yaml, which have serveral property options:
properties:
options:
Bodenloesungen: Bodenlösungen
Akustikloesungen: Akustiklösungen
Holzverarbeitung: Holzverarbeitung
PR-Anfrage: PR-Anfrage
type: MultiCheckbox
identifier: interest
label: 'Ich interessiere mich für:'
Upvotes: 0
Views: 73
Reputation: 1375
The following translation keys can be used to localize option labels in TYPO3's Form Framework:
<form-identifier>.element.<element-name>.properties.options.<value>
element.<element-name>.properties.options.<value>
So in your case, you could for example use
<trans-unit id="element.interest.properties.options.Bodenloesungen">
<source>soil solution</source>
<target>Bodenlösungen</target>
</trans-unit>
You can find a dedicated form translation tutorial with examples here: https://www.sebkln.de/en/tutorials/detail/translating-forms-in-the-typo3-form-framework/
Also, there's an example extension you could play with: https://github.com/sebkln/form_examples
Upvotes: 1