Classes/Utility/GeneralUtility.php
public static function getLanguageId()
    {
        $ret = 0;

        if (!empty($GLOBALS['TSFE']->tmpl->setup['config.']['sys_language_uid'])) {
            $ret = (int)$GLOBALS['TSFE']->tmpl->setup['config.']['sys_language_uid'];
        }

        return $ret;
    }
public static function getLanguageId()
    {
        $ret = 0;

        if (!empty($GLOBALS['TSFE']->tmpl->setup['config.']['sys_language_uid'])) {
            $ret = (int)$GLOBALS['TSFE']->tmpl->setup['config.']['sys_language_uid'];
        }

        return $ret;
    }
public static function getLanguageId ( ) { $ ret = 0 ; if ( ! empty ( $ GLOBALS [ 'TSFE' ] -> tmpl -> setup [ 'config.' ] [ 'sys_language_uid' ] ) ) { $ ret = ( int ) $ GLOBALS [ 'TSFE' ] -> tmpl -> setup [ 'config.' ] [ 'sys_language_uid' ] ; } return $ ret ; }
Get current language id

@return  integer
Get current language id