« Return to Thread: sys_language_uid, fallback on default language

Re: sys_language_uid, fallback on default language

by Markus Klein :: Rate this Message:

| View in Thread

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@... [mailto:typo3-english-bounces@...] On Behalf Of Muriel le Pair
> Sent: Wednesday, March 14, 2012 2:01 PM
> To: typo3-english@...
> 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@...
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

 « Return to Thread: sys_language_uid, fallback on default language