[TYPO3-project-formidable] Renderlet CAPTCHA: FIX errormessage from locallang.xml
Luc Muller
"l.muller[no]" at [spam]ameos.com
Tue Feb 24 18:09:20 CET 2009
this is going to be part of next release :)
thanks a lot
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