I have two adapters one for all errors and one by module because my
application is modular.
In every module the file language is include in a subdirectory.
The file of error is for all application

Cordialement,


Samuel verdier – Directeur technique
[EMAIL PROTECTED]


-----Message d'origine-----
De : Thomas Weidner [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 31 juillet 2008 00:13
À : samuel verdier; [email protected]
Objet : Re: [fw-general] zend translate and zend form

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 



Reply via email to