[TYPO3-UG Italy] realurl traduzione pagina

Omar Folgheraiter omar.folgheraiter at gbf.it
Thu Oct 4 14:49:21 CEST 2012


premetto che non sono un programmatore ed è la prima volta che la uso, ma tramite degli esempi presi da internet sto cercando di agire sul file localconf dell'estensione... lo ho impostato così... 

<?php 
$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 't3lib/class.t3lib_tstemplate.php' ] [ 'linkData-PostProc' ] [ 'tx_realurl' ] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL' ; 
$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 'tslib/class.tslib_content.php' ] [ 'typoLink_PostProc' ] [ 'tx_realurl' ] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL_urlPrepend' ; 
$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 'tslib/class.tslib_fe.php' ] [ 'checkAlternativeIdMethods-PostProc' ] [ 'tx_realurl' ] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL' ; 
$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 't3lib/class.t3lib_tcemain.php' ] [ 'clearPageCacheEval' ] [ 'tx_realurl' ] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm' ; 

$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 't3lib/class.t3lib_tcemain.php' ] [ 'clearAllCache_additionalTables' ] [ 'tx_realurl_urldecodecache' ] = 'tx_realurl_urldecodecache' ; 
$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 't3lib/class.t3lib_tcemain.php' ] [ 'clearAllCache_additionalTables' ] [ 'tx_realurl_urlencodecache' ] = 'tx_realurl_urlencodecache' ; 

$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 't3lib/class.t3lib_tcemain.php' ] [ 'processDatamapClass' ] [ 'tx_realurl' ] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain' ; 
$TYPO3_CONF_VARS [ 'SC_OPTIONS' ] [ 't3lib/class.t3lib_tcemain.php' ] [ 'processCmdmapClass' ] [ 'tx_realurl' ] = 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain' ; 

$TYPO3_CONF_VARS [ 'FE' ] [ 'addRootLineFields' ] .= ',tx_realurl_pathsegment,tx_realurl_exclude,tx_realurl_pathoverride' ; 
$TYPO3_CONF_VARS [ 'FE' ] [ 'pageOverlayFields' ] .= ',tx_realurl_pathsegment' ; 

// Include configuration file 
$_realurl_conf = @unserialize ( $_EXTCONF ) ; 
if ( is_array ( $_realurl_conf ) ) { 
$_realurl_conf_file = trim ( $_realurl_conf [ 'configFile' ] ) ; 
if ( $_realurl_conf_file && @file_exists ( PATH_site . $_realurl_conf_file ) ) { 
require_once ( PATH_site . $_realurl_conf_file ) ; 
} 
unset ( $_realurl_conf_file ) ; 
} 

define ( 'TX_REALURL_AUTOCONF_FILE' , 'typo3conf/realurl_autoconf.php' ) ; 
if ( ! isset ( $GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTCONF' ] [ 'realurl' ] ) ) { 
@include_once ( PATH_site . TX_REALURL_AUTOCONF_FILE ) ; 
} 
unset ( $_realurl_conf ) ; 

define ( 'TX_REALURL_SEGTITLEFIELDLIST_DEFAULT' , 'tx_realurl_pathsegment,alias,nav_title,title,uid' ) ; 
define ( 'TX_REALURL_SEGTITLEFIELDLIST_PLO' , 'tx_realurl_pathsegment,nav_title,title,uid' ) ; 

// TYPO3 clean up handler 
//$GLOBALS ['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/class.tx_realurl_cleanuphandler.php:tx_realurl_cleanuphandler'); 

// realurl config 
$TYPO3_CONF_VARS [ 'EXTCONF' ] [ 'realurl' ] = array ( 


//######################################################################################################################### 
'_DEFAULT' => array ( 
'init' => array ( 
'enableCHashCache' => 1 , 
// 'appendMissingSlash' => 'ifNotFile', 
'enableUrlDecodeCache' => 1 , 
'enableUrlEncodeCache' => 1 , 
) , 
'redirects' => array ( 
) , 
'preVars' => array ( 
array ( 
'GETvar' => 'no_cache' , 
'valueMap' => array ( 
'nc' => 1 , 
) , 
'noMatch' => 'bypass' , 
) , 
) , 

'fixedPostVars' => array ( 
) , 

'fileName' => array ( 
'index' => array ( 
//ajout pour printlink : 
'print.html' => array ( 
'keyValues' => array ( 
type => 98 , 
) 
) , 
) , 
'_DEFAULT' => array ( 
'keyValues' => array ( 
) 
) , 
// add .html suffix to the end of the path generated 
'defaultToHTMLsuffixOnPrev' => 1 , 
) , 
'preVars' => array ( 

array ( 

'GETvar' => 'no_cache' , 

'valueMap' => array ( 

'no_cache' => 1 , 

) , 

'noMatch' => 'bypass' , 

) , 

array ( 

'GETvar' => 'L' , 

'valueMap' => array ( 

'en' => '1' , 

'en' => '1' , 

'de' => '2' , 

'deutsch' => '2' , 

) , 

'noMatch' => 'bypass' , 

) , 

) , 
) , 

) ; 

?> 

----- Messaggio originale -----

Da: "Roberto Torresani" <typo3 at torresani.eu> 
A: "TYPO3 Usergroup Italy" <typo3-ug-italy at lists.typo3.org> 
Inviato: Giovedì, 4 ottobre 2012 14:37:15 
Oggetto: Re: [TYPO3-UG Italy] realurl traduzione pagina 

Ciao Omar! 

Il 04/10/2012 14.27, Omar Folgheraiter ha scritto: 
> ho un problema con l'estenzione: nelle pagine tradotte dovrebbe tradursi anche il nome della pagina... 
> se in italiano è "/pagina.html" in inglese dovrebbe diventare, invece che come ho adesso "/en/pagina.html", "/en/page.html"... qualcuno sa cosa bisogna impostare? 
Immagino che tu abbia creato la versione inglese della pagina e che hai 
impostato come nome (o come url path segment) il valore "page". 
Come hai gestito la configurazione di realurl (se lo utilizzi)? In modo 
automatico o con una configurazione personalizzata? 

Ciao 
Roberto 

_______________________________________________ 
TYPO3-UG-Italy mailing list 
TYPO3-UG-Italy at lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-italy 


More information about the TYPO3-UG-Italy mailing list