kernel/private/classes/ezplanguageswitcher.php
protected function isLocaleAvailableAsFallback()
    {
        $currentContentObjectLocale = eZINI::instance()->variable( 'RegionalSettings', 'ContentObjectLocale' );
        $saIni = $this->getSiteAccessIni();
        $siteLanguageList = $saIni->variable( 'RegionalSettings', 'SiteLanguageList' );
        return in_array( $currentContentObjectLocale, $siteLanguageList, true );
    }
protected function isLocaleAvailableAsFallback()
    {
        $currentContentObjectLocale = eZINI::instance()->variable( 'RegionalSettings', 'ContentObjectLocale' );
        $saIni = $this->getSiteAccessIni();
        $siteLanguageList = $saIni->variable( 'RegionalSettings', 'SiteLanguageList' );
        return in_array( $currentContentObjectLocale, $siteLanguageList, true );
    }
protected function isLocaleAvailableAsFallback ( ) { $ currentContentObjectLocale = eZINI :: instance ( ) -> variable ( 'RegionalSettings' , 'ContentObjectLocale' ) ; $ saIni = $ this -> getSiteAccessIni ( ) ; $ siteLanguageList = $ saIni -> variable ( 'RegionalSettings' , 'SiteLanguageList' ) ; return in_array ( $ currentContentObjectLocale , $ siteLanguageList , true ) ; }
Checks if the current content object locale is available in destination siteaccess.

This is used to check whether we should pass on the original URL to the
destination translation siteaccess, when no translation of an object
exists in the destination locale.

If the current content object locale exists as a fallback in the
destination siteaccess, the original URL should be available there as
well.

@return bool
Checks if the current content object locale is available in destination siteaccess .