Issues

ZF-7130: Zend Translate Adapter folder scan issue for variable strlen locale folders

Issue Type: Bug Created: 2009-06-25T21:54:44.000+0000 Last Updated: 2009-11-11T08:02:54.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Chris Gordon (chrisixion) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: - ZF-8286

Attachments:

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts