Issues

ZF2-568: setDefaultTranslator()

Description

The localizationfiles in the resourcefolder of the ZF2 package are multiple files (Zend_Validator.php, Zend_Captcha.php). So i can use them only with different textDomains (in my case 'validator' and 'captcha').

To prevent setting the textdomain by each validatorelement i set the default translator and the default tranlatortextdomain by \Zend\Validator\AbstractValidator::setDefaultTranslator($translator, 'validator');

But \Zend\Captcha\AbstractAdapter is a subclass of \Zend\Validator\AbstractValidator and uses the same Domain like AbstractValidator because there is no own implementation for setDefaultTranslator(). Is it possible to implement setDefaultTranslator() and the other static functions to support different domains for validators and Captcha? Or is there an other solution to load multiple languagefiles?

PS: Excuse my bad English :)

Comments

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2594