How to translate labels in symfony2 forms with messages.en.yml?
问题 I am trying to get translation of form fields to work. I have messages.en.yml in my Bundle's Ressource folder. test: it works form: description: Add a description. I want to build a form in an EntityType which translates the labels of the form fields accordingly. $builder->add( 'description', null, array('label' => 'form.description', 'required' => false) ); Yet only the literal string 'form.description' gets shown, not the expected translation of Add a description. The translation service