[TYPO3-english] sys_language_uid, fallback on default language

Markus Klein klein.t3 at mfc-linz.at
Wed Mar 14 14:35:39 CET 2012


Sorry, I forgot to mention that the first query has to fetch sys_language_uid = TSFE->sys_language_content

Kind regards
Markus

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] On Behalf Of Muriel le Pair
> Sent: Wednesday, March 14, 2012 2:01 PM
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] sys_language_uid, fallback on default language
> 
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list