[TYPO3] Problems with languages in extension / SOLVED
Lars Haendler
typo3 at larshaendler.com
Mon Sep 15 17:17:38 CEST 2008
Lars Haendler wrote:
> Hi,
>
> I got it pinned down but don't know why it is that way. In my
> tx_extension_pi1/2/3/4/5 files the $this->LLkey is correctly fr, but in
> my included classes the same LLkey is default.
>
> Have I to do something special in thoses classes, I don't know about?
>
>
> Every class I add to my pi file extends the tslib_pibase and the
> constructor always looks like this:
>
>
> function tx_classname (){
> $this->cObj = new tslib_cObj();
> $this->pi_setPiVarDefaults();
> $this->pi_loadLL();
> }
>
> Thanks
> Lars
function tx_classname (){
$this->cObj = new tslib_cObj();
$this->pi_setPiVarDefaults();
$this->tslib_pibase();
$this->pi_loadLL();
}
$this->tslib_pibase() in my own classes did the trick. This function
gets the language key and pi_loadLL can get the correct translations.
Regards
Lars
More information about the TYPO3-english
mailing list