[TYPO3-project-formidable] Renderlet CAPTCHA: FIX errormessage from locallang.xml
Hauke Hain
newgrp at googlemail.com
Sun Feb 22 18:35:29 CET 2009
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