[TYPO3-v4] How to assign a domain to a language (translation)

Simon Schaufelberger schaufelREMOVE-MEberger at punkt.de
Tue Aug 23 16:35:55 CEST 2011


ok, solved. the _DOMAINS block was on the wrong level. it needs to be here:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS']

i was putting it there:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['_DOMAINS']

Am 23.08.2011 15:46, schrieb Simon Schaufelberger:
> Dmitry! help!!! Realurl 1.11.2.
> 
> I added 2 different domains in my page tree:
> 
> de.example.com
> en.example.com
> 
> i added this code:
> 
> '_DOMAINS' => array(
> 	'encode' => array(
> 		array(
> 			'GETvar' => 'L',
> 			'value' => '0',
> 			'useConfiguration' => 'example.com',
> 			'urlPrepend' => 'http://de.example.com'
> 		),
> 		array(
> 			'GETvar' => 'L',
> 			'value' => '1',
> 			'useConfiguration' => 'example.com',
> 			'urlPrepend' => 'http://en.example.com'
> 		)
> 	),
> 	'decode' => array(
> 		'de.example.com' => array(
> 			'GETvars' => array(
> 				'L' => '0',
> 			),
> 			'useConfiguration' => 'example.com'
> 		),
> 		'en.example.com' => array(
> 			'GETvars' => array(
> 				'L' => '1',
> 			),
> 			'useConfiguration' => 'example.com'
> 		)
> 	)
> ),
> 
> and at the bottom of my config i added:
> 
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['de.example.com'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['en.example.com'] = 'example.com';
> 
> EXACTLY the same like in the blog and it does not work...
> 
> when entering en.example.com i am still in the default language (german
> in this case). what am i doing wrong?
> 
> Am 23.08.2011 12:12, schrieb Andreas Kiessling:
>> Hi,
>>
>>> but in many cases this does not fix the problem 100%. Realurl for
>>> example still depends on the L=1 or /en/ to have the english page names
>>> in the url.
>>>
>>> Any idea?
>>
>> There is a blog post about this on Dmitry's website
>> http://dmitry-dulepov.com/article/realurl-separate-language-domains-in-an-easy-way.html
>>
>>
>> Unfortunately, the comments are not clear if it (still) works.
>> Would be nice if you could give it a try and add a comment if you
>> succeeded.
>>
>> HTH,
>> Andreas
> 

-- 
Kind regards,

Schaufi from punkt.de


More information about the TYPO3-project-v4 mailing list