Details
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.
Issue Links
| This issue is duplicated by: | ||||
| ZF-8286 | Zend_Framework directory scan skips small locales |
|
|
|
Fixed with r17813