kernel/classes/ezcontentlanguage.php
static function idByLocale( $locale )
    {
        $language = eZContentLanguage::fetchByLocale( $locale );
        if ( $language )
        {
            return (int)$language->attribute( 'id' );
        }
        else
        {
            return false;
        }
    }
static function idByLocale( $locale )
    {
        $language = eZContentLanguage::fetchByLocale( $locale );
        if ( $language )
        {
            return (int)$language->attribute( 'id' );
        }
        else
        {
            return false;
        }
    }
static function idByLocale ( $ locale ) { $ language = eZContentLanguage :: fetchByLocale ( $ locale ) ; if ( $ language ) { return ( int ) $ language -> attribute ( 'id' ) ; } else { return false ; } }
\static
Returns id of the language specified.

\param locale String specifying locale code of the language, e. g. 'slk-SK'
\return ID of the language specified by locale or false if the language is not set on the site.
\ static Returns id of the language specified .