That solution is certainly the most elegant... however, I believe the translators would see "{$error}" as the text to translate rather than "Invalid email address" due to the way gettext / smartygettext pulls strings to be translated from files?

I've opted to assign the error message from the PHP parent script, and if a user want's to customize the error message, they can easily do it in their own language w/o the need for the translation function.

I have a form listing a user's information, along with two password fields. If the user types the same password in both fields, the password will be changed upon a valid form submittal. If the fields are left blank, the password will not be changed.

The form never registers as valid if the passwords are left blank -- even though a dump of the SmartyValidate object shows that the field passed validation!

i understand that there *is* a Zend_Validate class 'proposal' somewhere out ther (not holding my breath ...), and SmartyValidate is *here* & working great now.

that said, has anyone thought about the integration of SmartyValidate + ZF?

the two obvious approaches include either ignoring the ZF as much as possible, and simply using SmartyValidate within the smarty tpl context, and/or extending a Zend class for tighter integration.

Currently, i've taken the extend Zend_View class for integrating Smarty templating; working fine so far. so, my first inclination is to do the same with Validate ... altho, it's kinad moot until it actually exists!

I`m using SmartyValidate in an non-smarty env with a full-automated validation system and so I am not sure if I have to handle this problem with my framework, or is it only a bug in SmartyValidate itself...

It would be a complex task to if-case this situation through the whole framework and thats the reason why I post here in the forums.

Although I think it is rare case, I do agree that it is probably a case that should be handled. I would fix it myself, but I haven't looked at the code in quite a while. Maybe Monte is following this thread ... if not, send me a patch and I will try to remember my cvs password