Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 1.10.4
-
Fix Version/s: 1.10.5
-
Component/s: Zend_Translate
-
Labels:None
Description
cf ZF-9275 comments for a complete description of the problem including the defective source code.
The issue in ZF-9275 has not been fixed because of a bug in Zend/Form.php
Zend_Translate registry is set automatically by the resource method getTranslate
This in turn sets the translator for elements in Zend/Form/isValid() via the getDefaultTranslator method.
Since the element translator is initialized the Zend_Validate_Abstract default translator cannot be used.
Hence, the files in resources/languages/xx/Zend_Validate.php cannot be used normally unless using one of those workarounds:
- setting the validator translator file to Zend_Form default translators.
- disabling the Zend_Translate registry setting.
We should not see the forms elements translators override the validators translators since they address different translation sentences.
Sorry, but I don't see why this should be a problem of Zend_Translate?
Zend_Translate can not affect how other components behave.