[Typo3-dev] How to code a multi-language extension like tt_news 2.0?
Rupert Germann
rupi at gmx.li
Thu Mar 31 10:17:37 CEST 2005
Andre Flitsch wrote:
[...]
> In "localization view" i can click the language flag name, but the
> translated record does not appear in the same manner as those from
> tt_news. The records from tt_news appear one line down and indented
> whilst mine appear one line down, and unindented. I have checked the
> database, and my records have no entry in the l18n_parent or
> sys_language_uid fields. I am assuming that is the problem, but am not
> sure how to fix it, can anyone help me please?
you didn't mention the field 'l18n_diffsource' that is also required.
The following lines should be in your ext_tables.php:
'copyAfterDuplFields' => 'sys_language_uid',
'useColumnsForDefaultValues' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'languageField' => 'sys_language_uid',
in tca.php there are 3 additional fields required:
sys_language_uid
l18n_parent
l18n_diffsource
that should it be for the BackEnd.
greets
rupi
More information about the TYPO3-dev
mailing list