[TYPO3] Language dependent domain config HELP!

Pascal Cramer pascal at NOSPAMroguesheep.nl
Mon Mar 17 17:22:39 CET 2008


Hi Sara,
I think Dmitry refers to something like:

----
#dft/nothing specified: en
config.language = en
config.locale_all = en_EN
config.sys_language_uid=0
config.htmlTag_langKey=en

[globalString = IENV:HTTP_HOST=--the-other-domain--]
config.language =
config.locale_all =
config.sys_language_uid=
config.htmlTag_langKey=
[end]
----
I am guessing by doing this you cannot switch language in the website without 
switching to the other domain.

But there also is an extension which connects the domain to a certain language:
icti_language_on_domain

Why the current pages are not translated I don't know, do you have something like
----
[globalVar=GP:L=1]
config.locale_all = de_DE
config.sys_language_uid=1
config.language=de
config.htmlTag_langKey=de
[end]
----
in your TS setup? Where 1 is the id of the non default language and 'de' should 
be 'cy' in your case. This sets the language to de (German) in this case if that 
language was chosen (ie L=1 is in the querystring)

Pascal

Sara Weale wrote:
> Hi again!
> 
> I've managed to get a little bit further but it still doesn't quite work 
> as I need it to so I'm posting again to see if anyone can help (even 
> though i've read through tsref, typoscript by example and other docs and 
> still cannot work out how to code this!!).
> 
> I've currently got the setup as follows (see below) and I have a few 
> questions...
> 
> 1. Dmitry states that I need to set the default language with condition 
> on the domain name. How do I do this??
> 
> 2. The translation is happening as follows (realurl is turned on which 
> gives the /lang):
> 
> prycop.llgc.org.uk => works fine
> prycop.llgc.org.uk/cy => Not translating content generated outside of TS 
> template ie tmenu and content elements
> prycopcymraeg.llgc.org.uk=> Not translating content from TS template
> prycopcymraeg.llgc.org.uk/en => Not translating content from TS template
> prycopcymraeg.llgc.org.uk/cy/ => works fine
> 
> I take it that this is a result of the default language being english 
> without condition or is there something else missing from my config/have 
> I got too many things declared??
> 
> If anyone could help I would be very very grateful.
> 
> Thanks/Diolch
> Sara
> 
> Template setup (shortened!):
> 
> ----------------------------------------
> #Localisation of Languages
> 
> config.uniqueLinkVars = L
> config.sys_language_overlay = content_fallback
> config.index_enable = 1
> config.index_externals = 1
> 
> [globalString = ENV:HTTP_HOST = prycop.llgc.org.uk]
> config.language = en
> config.sys_language_uid = 0
> config.locale_all=en_GB
> config.baseURL = http://prycop.llgc.org.uk/
> [else]
> config.sys_language_uid = 1
> config.language = cy
> config.baseURL = http://prycopcymraeg.llgc.org.uk/
> [global]
> 
> [globalVar = GP:L = 1]
> [globalString = ENV:HTTP_HOST = prycopcymraeg.llgc.org.uk]
> #config.baseURL = http://prycopcymraeg.llgc.org.uk/
> #config.sys_language_uid = 1
> #config.language = cy
> config.linkVars = L
> config.uniqueLinkVars = L
> config.sys_language_overlay = content_fallback
> config.locale_all=cy_GB
> [global]
> 
> .....ENGLISH content fields....
> 
> [globalVar = GP:L = 1]
> 
> .....WELSH content fields....
> 
> [global]
> 
> 
> 
> 
> Dmitry Dulepov [typo3] wrote:
>> Hi!
>>
>> Sara Weale wrote:
>>  
>>> prycop.llgc.org.uk defaults to L=0 as it should but I cannot seem to 
>>> get prycopcymraeg.llgc.org.uk to default to L=1, it currently opens 
>>> the English home page
>>>     
>>
>> Of course it does, you defined config.language=en as default! You 
>> should set default language with condition on domain name. Nothing to 
>> do with RealURL actually...
>>
>>  
>>> How can I get realurl to use each domain properly??  I would be so 
>>> grateful for some pointers to setup realurl correctly without having 
>>> to resort to proxy forwarding.
>>>     
>>
>> RealURL does not "use" domains. It gets page ID and language ID rom 
>> TYPO3 and returns URL. It does not know anything else: just converts 
>> "index.php?id=1&L=1" to something else. No any other logic behind!
>>
>> RealURL does not define what language is used by domain or web site. 
>> This is completely controlled by you (and only by you!) in your TS setup.
>>
>>  
>>> #Localisation of Languages
>>> config.uniqueLinkVars = L
>>> config.sys_language_overlay = content_fallback
>>>     
>>
>> Here should be condition on host name to set default language properly
>>
>>  
>>> config.language = en
>>> config.sys_language_uid = 0
>>>     
>>
>> Here should be [else] part of condition with 
>> config.sys_language_uid=1/config.language=cy.
>>
>>  
>>> [globalVar = GP:L = 1]
>>>     
>>
>> This should be adjusted to take the above into account.
>>
>>  
>>> config.sys_language_uid = 1
>>> config.language = cy
>>> config.baseURL = http://prycopcymraeg.llgc.org.uk/
>>> config.linkVars = L
>>> config.locale_all=cy_GB
>>> [global]
>>>     
>>
>>   
> 


More information about the TYPO3-english mailing list