I wrote a custom adapter and am trying to load 13 different languages from
files. I can't simply read the entire directory because I am using
non-standard locale names and need full control. So in my bootstrap I call
the Zend_Translate constructor for my first language and then call
addTranslation for each of the remaining languages.

All of the languages get cached, but only the Zend_Translate constructor
actually checks to see if a language has been cached. If you call
addTranslation directly, it *always* calls the adapter to load the file.

For now as a workaround, I manually check to see if Zend_Cache already has
the key 'Zend_Translate_[my adapter here]' cached. But really, Zend should
simply check the cache for a hit every time addTranslation is called, right?

Rob
-- 
View this message in context: 
http://www.nabble.com/Zend_Translate-doesn%27t-cache-when-addTranslation-is-called-tp16539888p16539888.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to