Zend_Translate and SVN
Hy interested ones,
using Zend_Translate with a software version control system like SVN or CVS can drive developers crazy when you use directory search. This is due to the fact that all files are searched and added.
In the special case of a VCS system also the VCS directories are searched and added which often hold a complete but old version of the source file. This leads to the behaviour that old messageids are also added and presented. Your developer will not know why he get’s only old translations or wrong encoded files.
To solve this behaviour I added a new option ignore which defaults to ‘.’. All directories and files beginning with the value of this option will be ignored.
Now with this new option for example all .svn directories are ignored and not added. So your developer will always see the latest translation files.
You could change this option, for example, to ignore .svn if you want to have other . files and directories like .tmp or .source still added.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework

5 comments on Zend_Translate and SVN
robinsk on Wednesday, 27 August 2008 at 23:09:14 says:
Ah, good stuff :)
Marthin on Wednesday, 27 August 2008 at 23:38:45 says:
Good job, Thomas :)
Jean-Marc Fontaine on Thursday, 9 October 2008 at 14:02:48 says:
Hello Thomas,
thank you for this mind sanity feature. :)
By the way, you commited this feature before version 1.6.1 was released but it is not included in this release.
Do you know when it will make its way to a release ?
thomasw on Thursday, 9 October 2008 at 16:20:13 says:
In another post I mentioned that all new I18N related features were delayed for 1.7 by the devteam due to minor BC breaks.
Until now there was no reply so I expect that we have them in 1.7.
Jean-Marc Fontaine on Friday, 10 October 2008 at 10:52:53 says:
Thank you for the answer Thomas.