[TYPO3-dev] Translation of M:M Relations

Philipp Wrann philippwrann at gmail.com
Wed Nov 26 16:02:14 CET 2014


Hey again,

sorry for starting so many topcis on this whole translation thing but this time its much more complex than i thought...

I have the following scenario:
A Model has M:M relations to other models of the same type (kind of suggestions).
Its a generic extbase setup with objectStorage and so on.
TCA Config is like this:
###
'config' => array(				
				'type' => 'group',
				'internal_type' => 'db',
				'allowed' => 'tablename',
				'foreign_table' => 'tablename,
				'foreign_table_where' => 'AND ###THIS_UID### != tablename.uid',
				'MM' =>'relationtablename',
				'MM_opposite_field' => 'opposite_field',
				'MM_match_fields' => array(
					'tablenames' => 'tablename'
				),
				'wizards' => array(
					'suggest' => array(
						'type' => 'suggest',
						'default' => array(
							'searchWholePhrase' => 1
						)
					)
				)
			),
			'l10n_mode' => 'mergeIfNotBlank'
###

No - i can alter the field for the translation but it allways shows me the values from the default language. The problem is not, that the object i get in the frontend is not translated, i want to have diffrerent relations in the translations....

Do you know how i can achieve this?

Frontend context is extbase...

I tracked the stack all the way down to the DataMapper and getPreparedQuery/getConstraint and the localized_uid is not used as local field. So am i right this is not possible or did i miss something? I have to say i am kind of lost in code right now :)

kind regards,
Philipp



More information about the TYPO3-dev mailing list