Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6.0RC2
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Translate
-
Labels:None
Description
The function addTranslation() in Zend_Translate_Adapter recursively walks through all files (and folders) in the given folder. Immagine a structure like:
translation/lang_de.csv
translation/lang_it.csv
translation/.svn/text-base/lang_de.csv.svn-base
translation/.svn/text-base/lang_it.csv.svn-base
You will keep struggling with your translation without realizing that the problem is not the code / translation you are working on. Happened to one of our developers, drove him crazy ![]()
IMO Zend_Translate should either ignore well-known version management folders (like .svn) - or at least allow to pass some kind of regex for custom filters.
Kind regards,
Thomas Gelf
This is how I fixed it on our projects - should be extended to look also for other version control system folders...
Cheers,
Thomas Gelf