Wednesday, August 27, 2008
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
