[TYPO3] Multiple languages with multiple domains in a single page tree?

Francesco Pessina typo3news at yahoo.it
Thu Apr 6 16:50:27 CEST 2006


Hi, I've the same problem and, after 2 days of hard work I found a great 
solution; open your template Setup and, in the config {} section write this:

# -------------------------------------------------------------------------
# Multilanguage site configuration
# setting up the language variable "L" to be passed along with links
config.linkVars = L
# setting the default language: change the UID to specify the language
config.sys_language_uid = 0
config.language = it
config.locale_all = it_IT

# English language, sys_language.uid=0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = it
config.locale_all = it_IT
#[globalString = HTTP_HOST = www.domain.it]

# Italian language, sys_language.uid=1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = en_US
#[globalString = HTTP_HOST = www.domain.com]

# German language, sys_language.uid=2
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = de
config.locale_all = de_DE
#[globalString = HTTP_HOST = www.domain.de]

# French language, sys_language.uid=3
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = fr
config.locale_all = fr_FR
#[globalString = HTTP_HOST = www.domain.fr]

# Spanish language, sys_language.uid=4
[globalVar = GP:L = 4]
config.sys_language_uid = 4
config.language = es
config.locale_all = es_ES
#[globalString = HTTP_HOST = www.domain.es]

[global]

Uncomment the [globalString] if you want to redirect a specific language 
to a specific site-tree (you must configure more "domain" in Typo).

NOTE: the [global] is very important, don't forget it AFTER the language 
config!!

I hope this will help you.

Cheers,

Francesco.

Rick Janda ha scritto:
> Hello,
> 
> I have a site with two languages in a single page tree: German and English
> Furthermore I have two domains: .com and .de
> I tried to select English as page language, if someone use the .com 
> domain, and german otherwise with the following code in my template:
> 
> config.sys_language_uid = 0
> config.language = de
> config.locale_all = de_DE
> 
> [globalString= HTTP_HOST=*.com]
> config.sys_language_uid = 1
> config.language = en
> config.locale_all = en_IE at euro
> [global]
> 
> Unfortunately it does not work. I always will get the german content, 
> regardless of typing in the .com or the .de domain in the browser.
> 
> Has anybody an idea how to get it right?
> 
> Thanks in advance for your help.
> Kind regards,
> Rick Janda



More information about the TYPO3-english mailing list