[TYPO3-mvc] Form.select with translated options

Marc Bastian Heinrichs typo3 at mbh-web.de
Mon Apr 26 17:42:59 CEST 2010


Hej,

I tried different approaches to create an form select with translated 
options but either the complete content would not be rendered or the 
option label is empty. Is there bug or do I anything wrong?

Here are two of the versions I tried:

<f:form.select name="filter" id="filterbox" options="{0: 
'{f:translate(key: 'lang_key_1')}', 1: '{f:translate(key: 'lang_key_2')}'}">
	<select>
		<option value="">###dummy###</option>
	</select>
</f:form.select>

<f:form.select name="filter" id="filterbox" options="{0: 
{f:translate(key: 'lang_key_1')}, 1: {f:translate(key: 'lang_key_2')}}">
	<select>
		<option value="">###dummy###</option>
	</select>
</f:form.select>


Thanks for your help!

Regards,
Marc Bastian


More information about the TYPO3-project-typo3v4mvc mailing list