src/Common/Service/Locale.php
public function sniffLocale(\Nails\Common\Factory\Locale $oLocale = null): \Nails\Common\Factory\Locale
    {
        if (!$oLocale) {
            $oLocale = $this->getDefautLocale();
        }

        $this
            ->sniffHeader($oLocale)
            ->sniffActiveUser($oLocale)
            ->sniffUrl($oLocale)
            ->sniffCookie($oLocale)
            ->sniffQuery($oLocale);

        return $oLocale;
    }
public function sniffLocale(\Nails\Common\Factory\Locale $oLocale = null): \Nails\Common\Factory\Locale
    {
        if (!$oLocale) {
            $oLocale = $this->getDefautLocale();
        }

        $this
            ->sniffHeader($oLocale)
            ->sniffActiveUser($oLocale)
            ->sniffUrl($oLocale)
            ->sniffCookie($oLocale)
            ->sniffQuery($oLocale);

        return $oLocale;
    }
public function sniffLocale ( \ Nails \ Common \ Factory \ Locale $ oLocale = null ) : \ Nails \ Common \ Factory \ Locale { if ( ! $ oLocale ) { $ oLocale = $ this -> getDefautLocale ( ) ; } $ this -> sniffHeader ( $ oLocale ) -> sniffActiveUser ( $ oLocale ) -> sniffUrl ( $ oLocale ) -> sniffCookie ( $ oLocale ) -> sniffQuery ( $ oLocale ) ; return $ oLocale ; }
Sniff various items to determine the user's locale

@param \Nails\Common\Factory\Locale $oLocale The locale to set

@return \Nails\Common\Factory\Locale
Sniff various items to determine the user s locale