ZF-3215: QT and LOCALE_DIRECTORY load only the last file


Qt linguist file with the option array('scan' => Zend_Translate::LOCALE_DIRECTORY)

Only the data of the last file of the same locale is keep in the adapter. Because, at the load of the file the array _translate is reset.

106 case 'ts': 107 $this->_translate[$this->_target] = array(); 108 break;…

How to reproduce code :

$translate = new Zend_Translate(Zend_Translate::AN_QT, $this->appDir . '/application/languages', null, array('scan' => Zend_Translate::LOCALE_DIRECTORY));

folder strucuture :

languages/ fr_BE/ application.ts validate.ts nl_BE/ application.ts validate.ts


patch file

Already fixed with r9394. Patch incomplete and ignored.

Updating for the 1.6.0 release.