Setting these parameters using the form element parameters will not work! These parameters ("theme" and "lang") should be passed to the service instead.
Here is the constructor of Zend_Service_ReCaptcha:
public function __construct($publicKey = null, $privateKey = null, $params = null, $options = null, $ip = null) { β¦
Using:
$options = array('theme' => 'white', 'lang' => 'ru'); $recaptcha = new Zend_Service_ReCaptcha($publicKey, $privateKey, null, $options); $this->view->recaptcha = $recaptcha->getHtml();
Otherwise, if you want to use form elements, you must first get the service object. Try something like this:
$options = array('theme' => 'white', 'lang' => 'ru'); $form->getElement('captcha')->getCaptcha()->getService()->setOptions($options);
source share