Why do you seperate the translation adapters ?
Simply use one adapter where you add the files you want to translate. Use
addTranslation instead of multiple instances. Add only the modules you need.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "samuel verdier" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 30, 2008 11:47 PM
Subject: [fw-general] zend translate and zend form
Hi All,
I have multi file for translate (tmx) and i want to merge it
One file for global error form, others by controler
$this->translateFormError = new Zend_Translate('tmx', TMX_DIR .
'/form_errors.tmx', $this->lang);
$translateController = new Zend_Translate('tmx', MODULES_DIR . '/' .
$module . '/languages/' . $module . '_' . $controller . '.tmx',
$this->lang);
$this->form->setTranslator($this->translateFormError);
$this->form->setTranslator($this->translateController);
How can i solve my probleme with the zend 1.6RC1 ?
It is possible to do this for futur version :
$this->form->setTranslators(array($this->translateFormError,
$this->translateController));
Samuel