Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.10.2
-
Fix Version/s: 1.10.3
-
Component/s: Zend_Translate
-
Labels:None
Description
Currently I have the following directory structure for translation:
/languages
nl
lang.php
validation.php
router.php
en
lang.php
validation.php
router.php
On bootstrap I want to scan the languages directory and add the listed translation files except for the router.php file. To accomplish this I add router as value for the ignore option. This overrides the default "." value. Because of this Zend_Translate now tries to add files in the hidden .svn directory as translation files and error notices are displayed. It would be nice if the ignore option could allow an array or regex as value, so you can ignore multiple patterns ($options = array('ignore' => array('.', 'router')).
New feature implemented with r21656