ZF-4084: Generation of a "Notice: Undefined index: target-language" using Zend_Translate_Adapter_Xliff
When using Zend_Translate to parse xliff files (generated through translate-toolkit: po2xliff), I end up with the following notice error: Notice: Undefined index: target-language in /home/remy/my_php/ZendFramework-1.5.3/library/Zend/Translate/Adapter/Xliff.php on line 119
I've looked at Oasis xliff 1.2 specification to check if "target-language" attribute of "file" node is mandatory, but it appears it's optional (cf. http://docs.oasis-open.org/xliff/v1.2/…) Line 119 in Zend/Translate/Adapter/Xliff.php "$this->_target = $attrib['target-language'];" could be replaced by "$this->_target = array_key_exists('target-language', $attrib) ? $attrib['target-language'] : null;"