Zum Inhalt springen

Immer nur deutsch...

Erstellt am 25. Juli 2003 · 1 Antwort · letzte Antwort am 25. Juli 2003

Tags: Frage

gek_at ·

Hallo zusammen,

Ich spiel mich grad mit Mehrsprachigkeit und brings einfach nicht zusammen. Ich hab eine zweite Sprache (Englisch) angelegt und ein paar Seiten übersetzt. Dann hab ich das Template entsprechend des Tutorials von Kasper angepaßt. Trotzdem bekomm ich immer nur die deutsche Version zu sehen. Bin schön langsam am verzweifeln...

Ich hab bisweilen noch keinen Language-Selector eingebaut, ich tippe einfach an die URL das "&L=1" dazu. Sollte doch eigentlich genauso funzen, oder?

Mein Template schaut (etwas gekürzt) so aus:

config.linkVars = L

[globalVar = GP:L = 1] 
config.sys_language_uid = 1 
config.language = en 
config.locale_all = english 
[global]

temp.title = TEXT
temp.title.field = title

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template = FILE
  template.file = fileadmin/template/template1.html

  # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY
 
  # Substitute the ###content### subpart with some content:
  subparts.content < styles.content.get

  # Substiture the ###page_image### subpart with the left content
  subparts.page_image < styles.content.getLeft

  # Substitute page_name with the title of the current page
  subparts.page_name < temp.title

}
 
 
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
  # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template = FILE
  template.file = fileadmin/template/template1.html
  
  # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}
 
 
 
 
# Default PAGE object:
page = PAGE
page.typeNum = 0
 
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
 
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

Egal ob mit &L=1 oder ohne, ich seh immer nur deutsch. Bin mir aber sicher, dass Englisch die uid 1 hat. Woran könnte das sonst noch liegen?!

Danke für jede Hilfe!

lg,
Daniel

gek_at ·

Hallo nochmal,

Ich hab den Fehler gefunden. Uuuuups. Hab übersehen, dass bei den Englischen Seiten "Hidden" angehakt war.

Alsdann!

lg,
Daniel