[TYPO3] Globalvars

Bas van der Togt b.vandertogt at profinit.com
Tue Jul 11 16:57:28 CEST 2006


Hello list,

Can please somebody help me with the folowing problem:
The folowing setup is working fine except when i want to switch language 
with my language menu. It's translating all the text than but not the 
menu and other stuff. and if if to to the other domain he's showing the 
right translations in the menu but not the content text.

My Setup:

# Language
temp.Language = HMENU
temp.Language.special = language
temp.Language.special.value = 0,1
temp.Language.1 = GMENU
temp.Language.1.NO {
   imgParams = id="img-nl" onMouseover="showtext('Nederlands')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl.gif || 
fileadmin/templates/images/lang-en.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.ACT < temp.Language.1.NO
temp.Language.1.ACT = 1
temp.Language.1.ACT {
   imgParams = id="img-nl" onMouseover="showtext('Nederlands')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-o.gif || 
fileadmin/templates/images/lang-en-o.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.RO < temp.Language.1.NO
temp.Language.1.RO = 1
temp.Language.1.RO {
   imgParams = id="img-nl" onMouseover="showtext('Nederlands')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-o.gif || 
fileadmin/templates/images/lang-en-o.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.USERDEF1 < temp.Language.1.NO
temp.Language.1.USERDEF1 = 1
temp.Language.1.USERDEF1 {
   noLink = 1
   imgParams = id="img-nl" onMouseover="showtext('Nederlands')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-d.gif || 
fileadmin/templates/images/lang-en-d.gif
   5.width = 28
   5.height = 28
}

[globalVar = GP:L = 1]
temp.Language = HMENU
temp.Language.special = language
temp.Language.special.value = 0,1
temp.Language.1 = GMENU
temp.Language.1.NO {
   imgParams = id="img-nl" onMouseover="showtext('Dutch')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl.gif || 
fileadmin/templates/images/lang-en.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.ACT < temp.Language.1.NO
temp.Language.1.ACT = 1
temp.Language.1.ACT {
   imgParams = id="img-nl" onMouseover="showtext('Dutch')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-o.gif || 
fileadmin/templates/images/lang-en-o.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.RO < temp.Language.1.NO
temp.Language.1.RO = 1
temp.Language.1.RO {
   imgParams = id="img-nl" onMouseover="showtext('Dutch')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-o.gif || 
fileadmin/templates/images/lang-en-o.gif
   5.width = 28
   5.height = 28
}

temp.Language.1.USERDEF1 < temp.Language.1.NO
temp.Language.1.USERDEF1 = 1
temp.Language.1.USERDEF1 {
   noLink = 1
   imgParams = id="img-nl" onMouseover="showtext('Dutch')" 
onMouseout="hidetext()" || id="img-uk" onMouseover="showtext('English')" 
onMouseout="hidetext()"
   XY = 28,28
   5 = IMAGE
   5.file = fileadmin/templates/images/lang-nl-d.gif || 
fileadmin/templates/images/lang-en-d.gif
   5.width = 28
   5.height = 28
}
[global]


# Language setup
config.linkVars = L

[globalString= IENV:HTTP_HOST = *domain.nl]
config.sys_language_uid = 0
config.language = nl
config.locale_all = nl_NL
config.baseURL = http://www.domain.nl/

[globalString= IENV:HTTP_HOST = *domain.com]
config.sys_language_uid = 1
config.language = en
config.locale_all = en_EN
config.baseURL = http://www.domain.com/

[global]

cheers,
Bas



More information about the TYPO3-english mailing list