8

I install Sonata admin Bundle, everything work but I don't have any language - buttons and text in admin is like before translated example :

label.select_context , btn_filter (not filter but btn_filter)

and other - where I can setup language to sonata admin ?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Developer
  • 2,731
  • 2
  • 41
  • 71

2 Answers2

15

Enable translator in config.yml.

like.

    framework:
       translator:      { fallback: "%locale%" }
M.B Kakadiya
  • 576
  • 1
  • 5
  • 18
3

Sonata admin uses the language set in the configuration file. But that's not your problem, the problem is that the cache doesn't include the sonata admin translation files.

Clearing the cache will fix your problems:

$ php app/console cache:clear
Wouter J
  • 41,455
  • 15
  • 107
  • 112