ZF-7130: Zend Translate Adapter folder scan issue for variable strlen locale folders
Description
Problem with using variable string length folder names when scanning the translate folder.
e.g. $translate = new Zend_Translate('array', $this->_root . '/data/locale/translate', 'en_GB', array( 'scan' => Zend_Translate::LOCALE_DIRECTORY ) ); It scans through the directory alphabetically, but ignores valid directories that are of shorter string length than the previously matched directory.
Zend_Translate_Adapter line 159:
if (strlen($prev) <= strlen($file)) {
e.g: path/to/translate/en path/to/translate/en_GB path/to/translate/ja
ignores 'ja'. manually added required translation files (old method) for now.
Comments
Posted by Thomas Weidner (thomas) on 2009-08-25T12:55:27.000+0000
Fixed with r17813
Posted by Thomas Baumann (t11n) on 2009-11-11T06:18:45.000+0000
Fix has not been released yet. In ZF 1.9.5, I still have the problem. See my Issue #8286.
Posted by Thomas Weidner (thomas) on 2009-11-11T08:02:54.000+0000
You may note that this issue is marked as "fixed with next minor release". This means 1.10.
When you are in need of this code then you must use SVN trunk.