[TYPO3] A mess with the languages

Niels Fröhling niels.froehling at adsignum.com
Sat May 19 00:03:03 CEST 2007


  Hy;

 I have a problem with a skew between the languages uid and the L-get.

 I have the following languages:

 default(0): spanish
 english(2): english
 german(3): german

 The missing 1 was another spanish, I deleted it when I realized, that it's
even worst when the default is nothing.

 Now this whole messes the language-menu up. I'm not able to assign:

 L=0   default(0)
 L=1   english(2)
 L=2   german(3)

 Then the language-menu doesn't produce links anymore at all.
 If I assign:

 L=0   default(0)
 L=2   english(2)
 L=3   german(3)

 The language-menu produces links, but the UID gets deleted:

index.php?id=28&L=0    Espanol
index.php?id=2&L=2      English
index.php?id=3&L=3      Deutsch

 If I enter manually index.php?id=28&L=2, the language menu becomes
link-free again.
 There are no menu-titles in the other languages either. The content
changes language though.

 Any explanation for this?
 http://adsignum.com/ for looking the case.

 Thanks
    Niels

####################################################################################

config {
    sys_language_uid = 0
    language = es
    locale_all = es_SV
}

[globalVar = GP:L=0]

config {
    sys_language_uid = 0
    language = es
    locale_all = es_SV
}

[globalVar = GP:L=2]

config {
    sys_language_uid = 2
    language = en
    locale_all = en_UK
}

[globalVar = GP:L=3]

config {
    sys_language_uid = 3
    language = de
    locale_all = de_DE
}

####################################################################################
# language menu template ----------------
tmpl.language = HMENU
tmpl.language.special = language
tmpl.language.special.value = 0,2,3
tmpl.language.special.normalWhenNoLanguage = 0
tmpl.language.1 = GMENU
tmpl.language.1.noBlur = 1
tmpl.language.1.NO {
    backColor = #FF00FF
    transparentBackground = 1
    XY = 16, 16

    1 = IMAGE
    1.file = fileadmin/templates/pics/ui/_sv.png || 
fileadmin/templates/pics/ui/_uk.png || fileadmin/templates/pics/ui/_de.png

    ATagTitle = Espanol || English || Deutsch
    ATagParams = style="opacity: 0.25"
}
tmpl.language.1.ACT < tmpl.language.1.NO
tmpl.language.1.ACT = 1
tmpl.language.1.ACT {
    ATagParams = style="opacity: 1.0"
}
tmpl.language.1.USERDEF1 < tmpl.language.1.NO
tmpl.language.1.USERDEF1 = 1
tmpl.language.1.USERDEF1 {
    backColor = #FF0000
    ATagParams = style="opacity: 0.5;"
}
tmpl.language.1.USERDEF2 < tmpl.language.1.NO
tmpl.language.1.USERDEF2 = 1
tmpl.language.1.USERDEF2 {
    backColor = #00FF00
    ATagParams = style="opacity: 1.0;"
}



More information about the TYPO3-english mailing list