Soanta Admin Bundle Locale

人走茶凉 提交于 2019-12-02 10:29:15

the locale is set on the request, and will not "stick" , so each request it will be the default again, unless you do something like this:

http://symfony.com/doc/current/cookbook/session/locale_sticky_session.html

Wich will on each request, take the locale from the session, and set it on the current request.

(make sure that LocaleListener has a lower priority then your UserLocaleListener, so that it runs after it)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!