Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Translate value in SonataAdminBundle list
class InvoiceAdmin extends Admin
// ...
protected function configureListFields(ListMapper $list)
// Use "trans" type to translate the given value
// EluceoInvoiceBundle_Status.**.xliff will be used for translation
->add('status', 'trans', array('catalogue' => 'EluceoInvoiceBundle_Status'))
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.