ZF-12086: Zend_Captcha_ReCaptcha should support custom_translations option

Issue Type: Improvement Created: 2012-03-02T21:13:05.000+0000 Last Updated: 2013-03-20T09:57:22.000+0000 Status: Resolved Fix version(s): - Next Mini Release ()

Reporter: Wojciech Gomoła (szogun1987) Assignee: Christian Wenz (wenz) Tags: - Zend_Captcha

Related issues: Attachments: - ZF-12086.patch


Feature which allows translate all recaptcha elements is described on… . But following code do not set custom_translation option: $captchaEngine = new Zend_Captcha_ReCaptcha(); $captchaEngine->setPubkey($config->recaptcha->public_key); $captchaEngine->setPrivkey($config->recaptcha->private_key); $captchaEngine->setOption('theme', 'white');

    $customTranslations = '{instructions_visual : \'Wpisz dwa wyrazy:\', instructions_audio: \'Wpisz usłyszany tekst:\'}';

    $captchaEngine->setOption('custom_translations', $customTranslations);


Posted by Christian Wenz (wenz) on 2012-03-03T21:52:26.000+0000

patch for ZF-12086: adding custom_translations option to Zend_Service_ReCaptcha.

Posted by Wojciech Gomoła (szogun1987) on 2012-03-04T06:19:58.000+0000

I think that I found better solution. Zend_Captcha_ReCaptcha should have "IsCustomTranslated" property. If user call "setCustomTranslated(true)" rendering should use translation engine to translate all 9 phrases and set "custom_translation" to right value.h

Posted by Christian Wenz (wenz) on 2012-03-04T17:26:42.000+0000

I believe the proposed patch offers a more flexible solution; relying on a translating engine would lead to nondeterministic results if the translation engine is updated, what is probably undesirable.

Posted by Frank Brückner (frosch) on 2013-03-20T09:56:52.000+0000

Fixed on trunk (25295) and on release-1.12 branch (25296)

Thanks to Christian!

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.