0
我在Symfony2.1中使用FosUserBundle,当我尝试连接未启用的用户时,以下错误显示在我的表单中:User account is disabled
,这很棒,但它是法语网站,我想翻译这条消息用法语。如何翻译SecurityContext:AUTHENTICATION_ERROR?
我已经在翻译文件夹中翻译了会话消息和验证程序:messages.fr.yml
和validators.fr.yml
和MyUserBundle.fr.yml
但我无法获取由SecurityContext创建的消息。
可能重复的[Customize Authentication - Login Symfony2 Messages](http://stackoverflow.com/questions/9201849/customize-authentication-login-symfony2-messages) – 2013-02-27 13:07:47