source/Core/Language.php
public function detectLanguageByBrowser()
    {
        $sBrowserLanguage = $this->_getBrowserLanguage();

        if (!is_null($sBrowserLanguage)) {
            $aLanguages = $this->getLanguageArray(null, true);
            foreach ($aLanguages as $oLang) {
                if ($oLang->abbr == $sBrowserLanguage) {
                    return $oLang->id;
                }
            }
        }
    }
public function detectLanguageByBrowser()
    {
        $sBrowserLanguage = $this->_getBrowserLanguage();

        if (!is_null($sBrowserLanguage)) {
            $aLanguages = $this->getLanguageArray(null, true);
            foreach ($aLanguages as $oLang) {
                if ($oLang->abbr == $sBrowserLanguage) {
                    return $oLang->id;
                }
            }
        }
    }
public function detectLanguageByBrowser ( ) { $ sBrowserLanguage = $ this -> _getBrowserLanguage ( ) ; if ( ! is_null ( $ sBrowserLanguage ) ) { $ aLanguages = $ this -> getLanguageArray ( null , true ) ; foreach ( $ aLanguages as $ oLang ) { if ( $ oLang -> abbr == $ sBrowserLanguage ) { return $ oLang -> id ; } } } }
Detect language by user browser settings. Returns language ID if
detected, otherwise returns null.

@return int
Detect language by user browser settings . Returns language ID if detected otherwise returns null .