[TYPO3] Multidomain - multilanguage
Logi Huldar Gunnlaugsson
logi at spuni.is
Mon Oct 9 21:26:09 CEST 2006
Thank you guys (Loek and Joey) sooo much! Used a little from both of
your answers and my client's site is flying in multi-language,
multi-domain heaven! Had to get rid of my RealURL setup all together to
get it to work (don't know why) but that is just a matter of trial and
error to get it working again, I hope. Will probably come back crawling
to this list with the tail between my legs in a few hours... :-D
Just goes to show the power of OSS "support" ;-)
Cheers,
Logi
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Loek
Hilgersom
Sent: 9. október 2006 16:36
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] Multidomain - multilanguage
Logi Huldar Gunnlaugsson wrote:
> What I need is to make it so that
>
> www.mydomain.de/page -> would give me the german page above,
> www.mydomain.fr/page -> would give me the french page but
> www.mydomain.com/page -> would give me the english page
>
> I suggested to my client to make this happen on subdomains
> (de.mydomain.com, fr.mydomain.com etc.) but he is fixed on working
only
> with TLDs.
I think something like this in your Setup should do the trick:
# Default language English, sys_language_uid = 0
config.sys_language_uid = 0
config.language = en
config.linkVars = L
# Change language settings depending on TLD
[globalString = ENV:HTTP_HOST=www.mydomain.de]
config.sys_language_uid = 1
config.language = de
[globalString = ENV:HTTP_HOST=www.mydomain.fr]
config.sys_language_uid = 2
config.language = fr
[GLOBAL]
# Override language settings if language var L is used
# German, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = de
# French, sys_language.uid = 2
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = fr
[GLOBAL]
This would work exactly the same with subdomains instead of TLD's.
Loek
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list