JsFormValidatorBundle icon indicating copy to clipboard operation
JsFormValidatorBundle copied to clipboard

FOSUserBundle and translations

Open inwaar opened this issue 11 years ago • 1 comments

Hi, have one more question.

When using FOSUserBundle, and override twig templates (for example for registration), I have some strange behavior with error translations.

Without JsFormValidator (normal) With JsFormValidator
image image

Would you give me some comments on this issue, please?

inwaar avatar Sep 02 '14 17:09 inwaar

At the moment the factory uses the validator.translation_domain translation domain, which is given by Symfony with value validators.

You have different options at the moment:

  • Extend this bundle and override the needed stufff
  • Add the validation error messages to your "normal" translation (copy & paste) (See http://symfony.com/doc/current/book/translation.html#translating-constraint-messages)

It seems that there is no possibility to set that value explicitly

CSchulz avatar Sep 21 '14 21:09 CSchulz