Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Translate
-
Labels:None
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;
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