Issue Details (XML | Word | Printable)

Key: ZF-8037
Type: Bug Bug
Status: Resolved Resolved
Resolution: Not an Issue
Priority: Critical Critical
Assignee: Thomas Weidner
Reporter: Kanstantsin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

unlogic code in addTranslation func

Created: 09/Oct/09 12:04 AM   Updated: 09/Oct/09 01:44 AM   Resolved: 09/Oct/09 01:44 AM
Component/s: Zend_Translate
Affects Version/s: 1.9.3
Fix Version/s: 1.9.4

Time Tracking:
Not Specified


 Description  « Hide

source: Zend/Translate/Adapter.php
code:
if (strpos($directory, DIRECTORY_SEPARATOR . $this->_options['ignore']) !== false) {
// ignore files matching first characters from option 'ignore' and all files below
continue;
}

bug on win platform, because project uses tmx scan and this folder:
d:\.work\...\languages

resolution:
DIRECTORY_SEPARATOR to '/'
or
if ($this->_options['ignore'] != '') {}



Thomas Weidner added a comment - 09/Oct/09 01:43 AM

Any why should this code be unlogic ?

Simply look into the manual to know how this option works. Just because you don't read, it does not mean that it does not work as expected.

Manual: http://framework.zend.com/manual/en/zend.translate.additional.html

All directories and files beginning with this prefix will be ignored when searching for files. This value defaults to '.' which leads to the behavior that all hidden files will be ignored. Setting this value to 'tmp' would mean that directories and files like 'tmpImages' and 'tmpFiles' would be ignored as well as all subsequent directories


Thomas Weidner added a comment - 09/Oct/09 01:44 AM

Closing as non-issue