FriendsOfSymfony/FOSUserBundle — Issue #494: Translation in controller
Author: IjinPL
Created: 2012-01-18 02:39:31+00:00
State: open

I'm using FOSUserBundle to create ajax login form, and returning login form errors using ajax. Moreover i need these errors to be translated into Polish within controller, before sending. So when I try to use translator on overriden `SecurityController.php`:

`$error = $this->container->get('translator')->trans($error->getMessage());`

I don't get any error despite the fact that the message aren't beeing translated. Am I in need of your Twig translator or there is a solution which i couldn't find?