Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 398
Developer Avatar asked Oct 24 '13 15:10

Developer


2 Answers

Enable translator in config.yml.

like.

    framework:
       translator:      { fallback: "%locale%" }
like image 177
M.B Kakadiya Avatar answered Oct 15 '22 09:10

M.B Kakadiya


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
like image 24
Wouter J Avatar answered Oct 15 '22 09:10

Wouter J