[TYPO3-english] CoolUri + localized page path

Joe Berger joeberger at gmx.de
Tue Mar 17 19:13:11 CET 2009


Hi Jan,

thanks again for your hints.

In my root template I've written



# Konfiguration der Sprachen
 ###############################################
 #Standardsprache Deutsch UID =0
 config.linkVars = L
 config.uniqueLinkVars = 1
 config.sys_language_uid = 0
 config.language = de
 config.locale_all = de_DE.UTF8
 #Damit auch der Content richtig angezeigt wird in der Seitensprache
 config.sys_language_overlay = 1



[globalVar = GP:L = 2]
 #englisch
 config.sys_language_uid = 2
 config.language = en
 config.locale_all = en_EN.UTF8
[global]



And my language switcher is


lib.langMenu = TEXT
lib.langMenu {
  wrap = <ul><li> | </li></ul>
  value = English
  typolink.parameter.data = page:uid
  typolink.additionalParams = &L=2
}

[globalVar = GP:L = 2]
        lib.langMenu.value = Deutsch
        lib.langMenu.typolink.additionalParams = &L=0
[global]


Now the links are translated but not the page. When I write [globalVar =
GP:L = 1] everywhere the page is translated but not the links.
I'm now sure that's not a CoolUri problem because I got the same behaviour
without the extension (index.php?id=465&L=0 and index.php?id=465&L=2).

I guess I need a break an new ideas to solve the problem. So I just say
thanks again for your time and help

Kind regards

Joe








>>> Jan Bednarik<info at bednarik.org> schrieb am 16.03.2009 um 17:41:
> Hi,
> 
>> The links are fine now but the pages are not translated anymore.
> 
>> [globalVar = GP:L=2]
>>         lib.langMenu.value = Deutsch
>>         lib.langMenu.typolink.additionalParams = &L=0
>> [global]
> 
> and how about the language defintion? It should be:
> 
> [globalVar = GP:L = 2]
> 
>   #english
>   config.sys_language_uid = 2
>   config.language = en
>   config.locale_all = en_EN.UTF8
> 
> lib.langMenu.value = Deutsch
> lib.langMenu.typolink.additionalParams = &L=0
> 
> [global]
> 
> Regards
 


More information about the TYPO3-english mailing list