[TYPO3-english] Realurl and chinese character conversion

David ARNOULT - Edition & Internet Operations d.arnoult at topsolid.com
Wed Oct 6 16:24:01 CEST 2010


Just a quick follow up for those who have the same problem: I have found
something, it was a bug and solved in realurl 1.9.0...
http://bugs.typo3.org/view.php?id=13962

I will try to update my realurl soon...
Sorry for disturbing the list.

Rgds

David


-----Message d'origine-----
De : typo3-english-bounces at lists.typo3.org
[mailto:typo3-english-bounces at lists.typo3.org] De la part de David ARNOULT -
Edition & Internet Operations
Envoyé : mercredi 6 octobre 2010 14:56
À : 'TYPO3 English'
Objet : [TYPO3-english] Realurl and chinese character conversion

Hello !

I need a little help from my TYPO3 friends.

I am using realurl 1.8.1/TYPO3 4.3.3 in multilanguage one tree setup and all
is OK so far.
I am adding the Chinese language and realurl cant' convert/generate any
localized URL from Chinese character.
I know that I can use Speaking path segment field for force each page with
an English value, but how can I do to use English segment by default for
Chinese language only?

It works fine in Greek, example :
http://www.topsolid.com/products.htm
http://gr.topsolid.com/proionta.htm

But not in Chinese (first entry in the horizontal menu is empty):
http://cn.topsolid.com/

Any hint on that issue?

Here is my config :

<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'_DEFAULT' => array(
    'init' =>   array (
      'enableCHashCache' => true,
      'appendMissingSlash' =>  'ifNotFile',
      'adminJumpToBackend' => true,
      'enableUrlDecodeCache' => true,
      'enableUrlEncodeCache' => true,
      'emptyUrlReturnValue' => '/',
      //'postVarSet_failureMode' => 'redirect_goodUpperDir',
      //'doNotRawUrlEncodeParameterNames' => 1,
      //'respectSimulateStaticURLs' => 1
    ),

'preVars' => array(
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'en' => 0,
            'fr' => 1,
			'de' => 2,
			'it' => 3,
			'es' => 4,
			'gr' => 5,
			'cn' => 7,
        ),
	'noMatch' => 'bypass',
    ),
   /*
    array(
	'GETvar' => 'no_cache',
        'valueMap' => array(
        	'no_cache' => 1,
	),
	'noMatch' => 'bypass',
     ),*/
),

'postVarSets' => array(
			'_DEFAULT' => array(
				// news archive parameters
				'archive' => array(
					array(
						'GETvar' =>
'tx_ttnews[year]' ,
						),
					array(
						'GETvar' =>
'tx_ttnews[month]' ,
						'valueMap' => array(
							'january' => '01',
							'february' => '02',
							'march' => '03',
							'april' => '04',
							'may' => '05',
							'june' => '06',
							'july' => '07',
							'august' => '08',
							'september' => '09',
							'october' => '10',
							'november' => '11',
							'december' => '12',
							)
						),
					),
				// news pagebrowser
				'browse' => array(
					array(
						'GETvar' =>
'tx_ttnews[pointer]',
						),
					),
				// news categories
				'select_category' => array (
					array(
						'GETvar' =>
'tx_ttnews[cat]',
						),
					),
				// news articles and searchwords
				
				'article' => array(
					array(
						'GETvar' =>
'tx_ttnews[tt_news]',
						'lookUpTable' => array(
							'table' =>
'tt_news',
							'id_field' => 'uid',
							'alias_field' =>
'title',
							'addWhereClause' =>
' AND NOT deleted', 
							'languageGetVar' =>
'L',
	
'languageExceptionUids' => '',
							'languageField' =>
'sys_language_uid',
	
'transOrigPointerField' => 'l18n_parent',
							//'maxLength' => 50,
							'useUniqueCache' =>
1,
	
'useUniqueCache_conf' => array(
								'strtolower'
=> 1,
	
'spaceCharacter' => '-',
								),
							),
						),
					array(
						'GETvar' =>
'tx_ttnews[swords]',
						),
					),
				),
			),

    'pagePath' =>   array (
      'type' => 'user',
      'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
      'spaceCharacter' => '-',
      'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,title',
      'languageGetVar' => 'L',
      'rootpage_id' => 2,
      'expireDays' => 1,
      'disablePathCache' => '1',
      //'excludePageIds'    => null,
      //'autoUpdatePathCache' => true,
    ),
    
    'fileName' =>   array (
      'defaultToHTMLsuffixOnPrev' =>  '.htm',
      'acceptHTMLsuffix' => 1,
    ),
  ),

  '_DOMAINS' => array(
        'encode' => array(
            array(
                'GETvar' => 'L',
                'value' => '0',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.com',
            ),
            array(
                'GETvar' => 'L',
                'value' => '1',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.fr',
            ),
			array(
                'GETvar' => 'L',
                'value' => '2',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.de',
            ),
			array(
                'GETvar' => 'L',
                'value' => '3',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://it.topsolid.com',
            ),
			array(
                'GETvar' => 'L',
                'value' => '4',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://es.topsolid.com',
            ),
			array(
                'GETvar' => 'L',
                'value' => '5',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://gr.topsolid.com',
            ),
			array(
                'GETvar' => 'L',
                'value' => '7',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://cn.topsolid.com',
            ),
        ),
        'decode' => array(
            'www.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '0',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
            'www.topsolid.fr' => array(
                'GETvars' => array(
                    'L' => '1',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'www.topsolid.de' => array(
                'GETvars' => array(
                    'L' => '2',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'it.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '3',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'es.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '4',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'gr.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '5',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'cn.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '7',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
        ),
),
);
?>

Thanks for your help!!!!

David



_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list