Xavier,

I quite dont understand your problem.

When doing a translation with Zend_Translate all inputs are translated to defined output. When you don't want something to be translated then don't call Zend_Translate on it. Of course will Zend_Translate translate all given messageids... that's the reason why we created it. :-) There is no way of switching off translation for particular messageids because you will eighter NOT CALL Zend_Translate on them of simply have no translation for this messageids.

It would be better when you give some examplecode so your problem is reproducable.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Xavier Vidal Piera" <[EMAIL PROTECTED]>
To: "Zend Framework General" <[email protected]>
Sent: Monday, April 28, 2008 2:04 PM
Subject: [fw-general] Overriding Zend_Validate messages


Hi

We're using a Zend_Translate object as a default translator for our
Zend_Form objects.

In this Translation object we have all our common translations but,
sometimes we want to override a validation error message with the method
"$v->setMessage()" but looking at the source code we can see that
Zend_Translate always replaces the messages althought we've override the
validator default message template.

Is there any way to override these message templates without disabling the
Form's default translator and without extending validators?

Thanks

--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://web.xaviervidal.net
610.68.41.78


Reply via email to