No problems! Glad I could be of help! I don't know why but my posts don't seem to be appearing on Nabble.com.
- Robert -----Original Message----- From: Rob L [mailto:[EMAIL PROTECTED] Sent: 08 April 2008 14:48 To: [email protected] Subject: Re: [fw-general] Zend_Translate doesn't cache when addTranslation is called UPDATE: After a message from Robert Castley (thanks), I tried directory scan instead of filename scan. It seemed to work. Here is an example of what works and what doesn't work for me: ------------- WORKS: ($dir contains folders zh_CN/ zh_TW/ en/ and de/ with translation files inside) $translate = new Zend_Translate('my_custom_adapter', $dir, null, array('scan' => Zend_Translate::LOCALE_DIRECTORY)); print_r($translate->getList()); prints: Array ( [en] => en [zh_TW] => zh_TW [zh_CN] => zh_CN [de] => de ) ------------- DOESN'T WORK: ($dir contains files zh_CN.txt zh_TW.txt en.txt and de.txt) $translate = new Zend_Translate('my_custom_adapter', $dir, null, array('scan' => Zend_Translate::LOCALE_FILENAME)); print_r($translate->getList()); prints: Array ( [en] => en [de] => de [zh] => zh ) I will continue with DIRECTORY, but I would prefer to use FILENAME, but what am I doing wrong that it combines zh_CN and zh_TW into a single locale? Rob -- View this message in context: http://www.nabble.com/Zend_Translate-doesn%27t-cache-when-addTranslation-is- called-tp16539888p16558540.html Sent from the Zend Framework mailing list archive at Nabble.com. ________________________________________________________________________ This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. ________________________________________________________________________ ________________________________________________________________________ This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. ________________________________________________________________________
