Hi everyone

I want to translate custom error messages when I submit a login form.
I've created 2 files called "validators.xx.php" insinde the Resources/
translations directory. When I submit the form, nothing is displayed :
I do see a bullet point indicating there is an error but with no
associated text.

Validation is done against a Doctrine entity, everything else works
like a charm. Here are some code sample :

Account.php (Doctrine entity)

...

   /**
     * @Assert\True(message="account.pwd.dontmatch")
     */
    public function isPasswordLegal()
    {
        return ($this->password1 == $this->password2);
    }


src/MyBundle/Resources/translations/validators.en.php

<?php

return array(
    'account.pwd.dontmatch'                                     => 'Passwords 
don\'t match',
);

?>

Any idea ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to