public function setLocale(Locale $locale)
    {
        $this->currentLocale = $locale;
        $this->saveCurrentLocaleToSession();

        return $this->currentLocale;
    }
public function setLocale(Locale $locale)
    {
        $this->currentLocale = $locale;
        $this->saveCurrentLocaleToSession();

        return $this->currentLocale;
    }
public function setLocale ( Locale $ locale ) { $ this -> currentLocale = $ locale ; $ this -> saveCurrentLocaleToSession ( ) ; return $ this -> currentLocale ; }
Sets the active locale
@param Locale $locale
@return Locale
Sets the active locale