[TYPO3-project-formidable] Renderlet CAPTCHA: FIX errormessage from locallang.xml

Luc Muller "l.muller[no]" at [spam]ameos.com
Mon Feb 23 15:45:20 CET 2009


I'll Implement your changes as soon as possible.

thanks a lot and welcome in our community :)

Luc =:0)

Hauke Hain a écrit :
> Hello,
> 
> if you set in a XML-File all labels etc you may also want to save the 
> errormessage from the captcha there.
> So you put something like that in your formidable XML:
> <errormessage>LLL:err.captcha</errormessage>
> 
> But for some reason only "LLL:err.captcha" will be displayed on the 
> page, not the content from the XML.
> 
> Here's why:
> Open class.tx_rdtcaptcha.php
> 
> Find line 145:
>    $sError = $this->aElement["errormessage"];
> 
> As you can see you get what you typed in your fomidable XML-file. To 
> change that just replace the line with the following code:
> $sError = $this->oForm->_getLLLabel($this->aElement["errormessage"]);
> 
> 
> Have fun!
> 
> Hauke


More information about the TYPO3-project-formidable mailing list