[TYPO3-mvc] Problem with translate in f:form.select option

Sebastian Fischer typo3 at fischer.im
Wed Jun 9 13:49:39 CEST 2010


Hi guys.

Todays exercise is, make the following work ^^

<f:form.select name="data[delivery]" options="{
	pickup: '{f:translate(key: delivery_pickup)}',
	depositing: '{f:translate(key: delivery_depositing)}',
	shipment: '{f:translate(key: delivery_shipment)}'
	}" value="pickup" />

The select gets rendered with 3 items but no labels in the items.

The translation viewhelper gets called but gets an empty key so no 
translated string gets returned.

How could this be fixed? First solving answer wins a beer on the dev days ;)

Greetings
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list