[TYPO3-dev] Records not translated properly when "sys_language_uid" is used as "type" field in TCA

Björn Pedersen pedersen at frm2.tum.de
Fri Nov 23 08:49:31 CET 2012


Am 23.11.2012 08:14, schrieb Roland:
> hi everybody,
> 
> for some tables of my extension i would like to set "sys_language_uid"
> as the type field to show different table fields for different languages
> in TYPO3 BE.
> 
> unfortunatelly when clicking on a language flag in TYPO3 list module to
> translate a record to another language the field "sys_language_uid" is
> not filled with the UID of the language. the field "l10n_parent" is
> filled correctly.
> 
> could this be a bug/missing feature?

Probably not, as the translation works for normal tables.

> if so: can someone please tell me where to look that i can try to fix
> that in TYPO3 core an push it to gerrit? thanks.
Check the $TCA configuration for your table in ext_tables.php:



$TCA['tx_frm2newpm_person'] = array (
        'ctrl' => array (
		....
            'languageField'            => 'sys_language_uid',
        'transOrigPointerField'    => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
 ....

I would guess languageField is not set correctly.

Björn




More information about the TYPO3-dev mailing list