Zum Inhalt springen

Standardsprache wird nicht angezeigt

Erstellt am 14. Juli 2009 · Noch keine Antworten

Tags: Frage

anwitter ·

Hallo,

ich habe eine Seite erstellt, die zweisprachig ausgegeben werden soll. Es wird aber immer nur die englische Variante angezeigt, selbs wenn ich in der URL den richtigen Parameter eingegeben habe. Habe ich im TS noch einen Fehler oder brauche ich noch eine Extension die ich bvergessen habe zu installieren.

Grüße anwitter

# Konfiguration für die Standardsprache

config.linkVars = L
 
# Deutsch / Hauptsprache
config {
        sys_language_uid = 0
        language = de
        locale_all = de_DE
}
 
# Seitenobjekt anlegen und Stylesheet zuweisen

seite = PAGE
seite{
   typeNum = 0
   stylesheet = fileadmin/style.css
   
   10 = TEMPLATE
   10.template = FILE
   10.template.file = fileadmin/vorlage.html
   10.workOnSubpart = DOKUMENT
   10.marks {
     MENU_OBEN = HMENU
     MENU_OBEN.special = directory
     MENU_OBEN.special.value = 4
     MENU_OBEN.1 = TMENU
     MENU_OBEN.1.NO = 1
	 MENU_OBEN.1.NO.linkWrap =  | ||*| | | |*|  |
	 MENU_OBEN.1.CUR = 1
	 MENU_OBEN.1.CUR.ATagParams = class= "aktiv1"
	 MENU_OBEN.1.CUR.linkWrap =  | ||*| | | |*|  |
	 MENU_LINKS = HMENU
     MENU_LINKS.special = directory
     MENU_LINKS.special.value = 3
	 wrap = <ul> | </ul>
	 MENU_LINKS.1 = TMENU
     MENU_LINKS.1.NO = linkWrap = <li> | </li>
	 MENU_LINKS.1.CUR = 1
	 MENU_LINKS.1.CUR.ATagParams = class= "aktiv"
	 
	 # MITTE_CONTENT < styles.content.get
	 
	 # Content in der Mitte
	 
	 MITTE_CONTENT = CONTENT
	 MITTE_CONTENT {
		table = tt_content
		selectorderBy = sorting
		select.where = colPos = 0
		select.languageField = sys_language_uid
		}
	# Content in der Rechts 
	 
	 RECHTS = CONTENT
	 RECHTS {
		table = tt_content
		selectorderBy = sorting
		select.where = colPos = 2
		select.languageField = sys_language_uid
		}
	 # RECHTS < styles.content.getRight
	 
	 # Auswahl der Sprache
	 
#	 HEADER_TOP = TEXT
#	 HEADER_TOP {
#		value = Englisch
#		typolink.parameter.data = page:uid
#		typolink.additionalParams = &L=1
#	 }
  }

# Englisch / 2. Sprache

[globalVar = GP:L = 1]
config {
        sys_language_uid = 1
        language = en
        locale_all = en_US
}
[global]   
 
lib.link.language = TEXT
lib.link.language {
        value = English
        typolink.parameter.data = page:uid
        typolink.additionalParams = &L=1
}
 
# Änderungen für die englische Sprache
[globalVar = GP:L=1]
        lib.link.language.value = Deutsch
        lib.link.language.typolink.additionalParams = &L=0
[global]
 
seite.10.marks.HEADER_TOP < lib.link.language

Problem ist erledigt. Mir hat eine schließende Klammer gefehlt.