[TYPO3-english] sys_language_uid, fallback on default language

Muriel le Pair typo3 at strangefruit.nl
Wed Mar 14 14:00:45 CET 2012

Op 14-03-12 12:40, Markus Klein schreef:

> One way to do it is:
> // language overlay
> if ($GLOBALS['TSFE']->sys_language_contentOL) {
> 	$OLmode = $GLOBALS['TSFE']->sys_language_contentOL;
> 	$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $row, $GLOBALS['TSFE']->sys_language_content, $OLmode);
> }

Very strange, it just doesn't work.
So the first query fetches the records with: sys_language_uid = 0.

If I output getRecordOverlay() with debug() ($row = 
$GLOBALS['TSFE']->sys_page->getRecordOverlay(..) the output is exactly 
the same as the default language.

So the records are not translated.

Any idea what I am doing wrong?

kind regards,

Muriel le Pair

More information about the TYPO3-english mailing list