Exemplo n.º 1
0
 public function onChangeLocation(MvcEvent $e)
 {
     $locale = $this->translator->getLocale();
     $this->translator->setLocale($e->getRouteMatch()->getParam('lang'));
     $this->translator->setFallbackLocale($locale);
 }