Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Translate
-
Labels:None
Description
Hello,
I use csv translate adapter and class constant keys like Zend_Validate_NotEmpty::IS_EMPTY are not supported.
I've made a trivial patch to solve this
— line 84 ----
$key = defined($data[0])?constant($data[0]): $data[0];
if (count($data) == 2) { $this->_data[$locale][$key] = $data[1]; } else { $singular = array_shift($data); $this->_data[$locale][$singular] = $data; }
Please give an example of what you want to archive.
Actually I just see problems with your change.
Related to Zend_Validate's translation there is already a resource file available which can be used.