Valentin
Valentin

Reputation: 602

Username "username" does not exist. translation

Having some trouble with a translation with Symfony2. I am using the FOS User Bundle and the translation for error messages during login are working perfectly fine with this in the FOSUserBundle.fr.yml :

"User account is disabled.": "Ce compte est désactivé."
"The presented password is invalid.": "Mot de passe incorrect."
"The presented password cannot be empty.": "Vous devez saisir un mot de passe !"
'Username "%s" does not exist.': 'L'utilisateur "%s" n'existe pas.'

Except the last one, the translation does not work at all...

Any ideas ?

Upvotes: 0

Views: 459

Answers (1)

Ryan
Ryan

Reputation: 6239

'Username "%s" does not exist.': 'L'utilisateur "%s" n'existe pas.'

Single quotes are mixed up.. try something like

"Username \"%s\" does not exist.": "L'utilisateur \"%s\" n'existe pas."

or

'Username "%s" does not exist.': 'L\'utilisateur "%s" n\'existe pas.'

Upvotes: 1

Related Questions