ZF-4133: addTranslate() overwrites locale
The method addTranslation() in Zend_Translate_Adapter contains a bug at the end of the method which overwrites the previous locale. It checks whether the original locale is set with:
However this is never true since the variable $translate does not exist. It should rather be
Otherwise when performing a directory scan the locale will be set to the last one found during the scan.