kernel/private/classes/ezplanguageswitcher.php
public static function setupTranslationSAList( $url = null )
    {
        $ini = eZINI::instance();
        if ( !$ini->hasVariable( 'RegionalSettings', 'TranslationSA' ) )
        {
            return array();
        }

        $ret = array();
        $translationSiteAccesses = $ini->variable( 'RegionalSettings', 'TranslationSA' );
        foreach ( $translationSiteAccesses as $siteAccessName => $translationName )
        {
            $switchLanguageLink = "/switchlanguage/to/{$siteAccessName}/";
            if ( $url !== null && ( is_string( $url ) || is_numeric( $url ) ) )
            {
                $switchLanguageLink .= $url;
            }
            $ret[$siteAccessName] = array(
                'url' => $switchLanguageLink,
                'text' => $translationName,
                'locale' => eZSiteAccess::getIni( $siteAccessName )->variable( 'RegionalSettings', 'ContentObjectLocale' )
             );
        }
        return $ret;
    }
public static function setupTranslationSAList( $url = null )
    {
        $ini = eZINI::instance();
        if ( !$ini->hasVariable( 'RegionalSettings', 'TranslationSA' ) )
        {
            return array();
        }

        $ret = array();
        $translationSiteAccesses = $ini->variable( 'RegionalSettings', 'TranslationSA' );
        foreach ( $translationSiteAccesses as $siteAccessName => $translationName )
        {
            $switchLanguageLink = "/switchlanguage/to/{$siteAccessName}/";
            if ( $url !== null && ( is_string( $url ) || is_numeric( $url ) ) )
            {
                $switchLanguageLink .= $url;
            }
            $ret[$siteAccessName] = array(
                'url' => $switchLanguageLink,
                'text' => $translationName,
                'locale' => eZSiteAccess::getIni( $siteAccessName )->variable( 'RegionalSettings', 'ContentObjectLocale' )
             );
        }
        return $ret;
    }
public static function setupTranslationSAList ( $ url = null ) { $ ini = eZINI :: instance ( ) ; if ( ! $ ini -> hasVariable ( 'RegionalSettings' , 'TranslationSA' ) ) { return array ( ) ; } $ ret = array ( ) ; $ translationSiteAccesses = $ ini -> variable ( 'RegionalSettings' , 'TranslationSA' ) ; foreach ( $ translationSiteAccesses as $ siteAccessName => $ translationName ) { $ switchLanguageLink = "/switchlanguage/to/{$siteAccessName}/" ; if ( $ url !== null && ( is_string ( $ url ) || is_numeric ( $ url ) ) ) { $ switchLanguageLink .= $ url ; } $ ret [ $ siteAccessName ] = array ( 'url' => $ switchLanguageLink , 'text' => $ translationName , 'locale' => eZSiteAccess :: getIni ( $ siteAccessName ) -> variable ( 'RegionalSettings' , 'ContentObjectLocale' ) ) ; } return $ ret ; }
Creates an array of corresponding language switcher links and logical names.

This mapping is set up in site.ini.[RegionalSettings].TranslationSA.
The purpose of this method is to assist creation of language switcher
links into the available translation siteaccesses on the system.

This is used by the language_switcher template operator.

@param string $url
@return void
Creates an array of corresponding language switcher links and logical names .