src/Zicht/Bundle/UrlBundle/Url/DbStaticProvider.php
public function getLocale()
    {
        if (null !== ($request = $this->getMasterRequest())) {
            $locale = $request->get('_locale');
        }

        if (!isset($locale)) {
            $locale = $this->fallback_locale;
        }

        return $locale;
    }
public function getLocale()
    {
        if (null !== ($request = $this->getMasterRequest())) {
            $locale = $request->get('_locale');
        }

        if (!isset($locale)) {
            $locale = $this->fallback_locale;
        }

        return $locale;
    }
public function getLocale ( ) { if ( null !== ( $ request = $ this -> getMasterRequest ( ) ) ) { $ locale = $ request -> get ( '_locale' ) ; } if ( ! isset ( $ locale ) ) { $ locale = $ this -> fallback_locale ; } return $ locale ; }
Returns the locale parameter for the current request, if any.

@return mixed
Returns the locale parameter for the current request if any .