Bundle/I18nBundle/Resolver/LocaleResolver.php
public function resolve(Request $request)
    {
        //locale
        switch ($this->localePattern) {
            case self::PATTERN_DOMAIN:
                $locale = $this->resolveFromDomain($request);
                $request->setLocale($locale);
                break;
        }

        return $request->getLocale();
    }
public function resolve(Request $request)
    {
        //locale
        switch ($this->localePattern) {
            case self::PATTERN_DOMAIN:
                $locale = $this->resolveFromDomain($request);
                $request->setLocale($locale);
                break;
        }

        return $request->getLocale();
    }
public function resolve ( Request $ request ) { //locale switch ( $ this -> localePattern ) { case self :: PATTERN_DOMAIN : $ locale = $ this -> resolveFromDomain ( $ request ) ; $ request -> setLocale ( $ locale ) ; break ; } return $ request -> getLocale ( ) ; }
set the local depending on patterns
it also set the victoire_locale wich is the locale of the application admin.
set the local depending on patterns it also set the victoire_locale wich is the locale of the application admin .