Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2
-
Fix Version/s: 1.8.0
-
Component/s: Zend_Translate
-
Labels:None
Description
With the example below, only the datas of the last loaded file is kept in the adapter because, during loading the file the array _translate is always reset.
$translate = new Zend_Translate('xliff', APP_PATH."/language/fr");
I think that line below (on Zend_Translate_Adapter_Xliff) must be executed only if the "clear" option is set to true.
125 $this->_translate[$this->_source] = array();
126 $this->_translate[$this->_target] = array();
Why should someone load the same translation file twice but with changed content ?