[TYPO3-ect] ECT library

Franz Koch typo3 at fx-graefix.de
Fri Mar 10 14:07:55 CET 2006


> I would like to see some simple functions to translate records.
> Instead of the need to write such code like this ever and ever
> again
> 
> $row = 
> $this->pi_getRecord("tx_table",$this->internal["currentRow"]["foo"],1);
> if ($GLOBALS['TSFE']->sys_language_content) {
>    $OLmode = ($this->sys_language_mode == 'strict'?'hideNonTranslated':'');
> $row = $GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_table', $row, 
> $GLOBALS[''TSFE']->sys_language_content, $OLmode);           }
> 
> there should be some nifty functions like
> ect_getTranslatedRecord($table, $id);
> 
> Just my 2 cent.

Haven't checked the pi-function, but there is/was a bug in 
cObject-Records that did not automatically fetch the correct language 
which it should have. I've made a bugreport and added a patch a few days 
ago. So maybe your workaround is allready obsolete.

-- 
Kind regards,
Franz Koch



More information about the TYPO3-team-extension-coordination mailing list