Issues

ZF-9500: Ignore option: allow an array or regex as value

Issue Type: New Feature Created: 2010-03-21T11:47:59.000+0000 Last Updated: 2010-03-26T15:04:23.000+0000 Status: Resolved Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Maxell (maxell) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments:

Description

Currently I have the following directory structure for translation:

<pre class="highlight">
/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')).

Comments

Posted by Thomas Weidner (thomas) on 2010-03-26T15:04:23.000+0000

New feature implemented with r21656

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