有没有办法翻译FOSOAuthServerBundle错误消息,比如“用户名和密码组合无效”?
我尝试在app/Resources/translations目录下创建messages.de.yml文件,并放入以下代码行:
Invalid username and password combination: "Falsche E-Mail / Passwort Kombination"并在app/config/parameters.yml中设置locale: de,但没有任何变化。
发布于 2015-12-26 04:50:18
我认为您尝试翻译的消息是硬编码( see this )的,您需要覆盖此方法以添加翻译
https://stackoverflow.com/questions/34463385
复制相似问题