Your initiation is wrong... if you give no locale then the locale from your
browser is taken. And if this can not be found the locale from your server
is used.
This means that when a "french" user accesses your site it will not work...
Your code did not work even before you added the other file.
Do
new Zend_Translate('csv', './data/module.en', 'en');
or use the automatic directory search
new Zend_Translate('csv', './data', array('scan' =>
Zend_Translate::LOCALE_FILENAME));
Both is described in the manual.
Greetings
Thomas Weidner, I18N Team Leader
http://www.thomasweidner.com
----- Original Message -----
From: "Cristian Bichis" <[EMAIL PROTECTED]>
To: "Zend Mailing List" <[email protected]>
Sent: Tuesday, January 29, 2008 1:01 AM
Subject: [fw-general] Re: Merge translate
No reply to this ?
It's maybe even a bug report on Zend_Translate...
Cristian
Hello,
It is possible to merge two translation objects data using same language
?
Sample:
i am using general.en and also module.en files, and i need for
english to translate from both.
By using this:
$translate = new Zend_Translate('csv', './data/module.en');
$translate->addTranslation('./data/general.en', 'en');
Seems even translation from first file is stopped working.
--
Best regards,
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zflinks.com | www.zftalk.com