ZF-3215: QT and LOCALE_DIRECTORY load only the last file
Description
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;
http://framework.zend.com/code/browse/…
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
Comments
Posted by Davide Mendolia (idaf_1er) on 2008-05-07T04:27:42.000+0000
patch file
Posted by Thomas Weidner (thomas) on 2008-05-07T05:51:04.000+0000
Already fixed with r9394. Patch incomplete and ignored.
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:14.000+0000
Updating for the 1.6.0 release.