Developer
Developer

Reputation: 2895

Symfony Sonata admin languages not work

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 ?

Upvotes: 8

Views: 5210

Answers (2)

M.B Kakadiya
M.B Kakadiya

Reputation: 576

Enable translator in config.yml.

like.

    framework:
       translator:      { fallback: "%locale%" }

Upvotes: 15

Wouter J
Wouter J

Reputation: 41934

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

Upvotes: 3

Related Questions