kernel/classes/ezcontentlanguage.php
function removeThis()
    {
        if ( ($this->objectCount() > 0) or ($this->classCount() > 0) )
        {
            return false;
        }

        $this->remove();

        eZContentCacheManager::clearAllContentCache();

        eZContentLanguage::fetchList( true );

        return true;
    }
function removeThis()
    {
        if ( ($this->objectCount() > 0) or ($this->classCount() > 0) )
        {
            return false;
        }

        $this->remove();

        eZContentCacheManager::clearAllContentCache();

        eZContentLanguage::fetchList( true );

        return true;
    }
function removeThis ( ) { if ( ( $ this -> objectCount ( ) > 0 ) or ( $ this -> classCount ( ) > 0 ) ) { return false ; } $ this -> remove ( ) ; eZContentCacheManager :: clearAllContentCache ( ) ; eZContentLanguage :: fetchList ( true ) ; return true ; }
Removes the language if there is no object having translation in it.

\return True if the language was removed from the site, false otherwise.
Removes the language if there is no object having translation in it .