[TYPO3] Re: [Typo3] domain and language

Jacco Lammers jlammers at sundayafternoon.nl
Sat Mar 18 14:37:11 CET 2006


Juraj Benadik wrote:
> Dmitry Dulepov wrote:
> 
>> Hi!
>>
>> Juraj Benadik wrote:
>>
>>> Any idea how to modify GP:L, so I can handle languages at one place 
>>> only ?
>>
>>
>>
>> Not sure what you mean... Usually there is a language selector on pages.
>> Also typo3 automatically adds "L" to all links, so you need not to do
>> anything with it.
>>
>> Dmitry.
> 
> 
> see, I do set page properties further on in the script depending on GP:L
> but I'd like to modify(preset) this L accordingly to subdomain user 
> entered the web (so when he comes via ENdomain,I will s et L to 1 and 
> further in setup page language would be configured based on GP:L=2

Here you can use the fact that TS will override values that are set 
further on in the script. So in this example the domain will determine 
the language only if no L is set already.

#language setup
config.language = nl
config.locale_all = nl_NL
config.linkVars = L

#dot com to english
[globalString = HTTP_HOST = www.domain.com]
config.sys_language_uid = 1
config.language = uk

#dot de to german
[globalString = HTTP_HOST = www.domain.de]
config.sys_language_uid = 3
config.language = de

#dutch uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = nl

#english uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = uk

#deutsch uid = 3
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = de

[global]



More information about the TYPO3-english mailing list