classes/LocaleManager.php
public function setLocale(Locale $locale)
    {
        putenv('LANG='.$locale);
        setlocale(LC_ALL, [$locale.'.utf8', $locale]);
        $this->curLocale = $locale;
        $this->sessionSegment->set('locale', $locale);
    }
public function setLocale(Locale $locale)
    {
        putenv('LANG='.$locale);
        setlocale(LC_ALL, [$locale.'.utf8', $locale]);
        $this->curLocale = $locale;
        $this->sessionSegment->set('locale', $locale);
    }
public function setLocale ( Locale $ locale ) { putenv ( 'LANG=' . $ locale ) ; setlocale ( LC_ALL , [ $ locale . '.utf8' , $ locale ] ) ; $ this -> curLocale = $ locale ; $ this -> sessionSegment -> set ( 'locale' , $ locale ) ; }
Set the current locale.

@param Locale $locale Locale
Set the current locale .