[Typo3] one-tree multilanguge site
Florian Schaeffer
florian.schaeffer at mercoline.de
Tue Mar 8 12:40:55 CET 2005
Hi Jane,
> I don't know where to put the code indicated by the 2 guides (is the
> setup TS the right place?) and I haven't had any luck showning a
> language menu.
Yes you are right, the code should be placed in the main template setup
If you want to make it like mentioned in the tutorial, please keep in
mind to include the +ext Template in your main template, otherwise your
setup will not be included. You should check that in Template Tool
(Template -> Select your template -> upper right corner Template Analyzer).
You should see something similar to this:
--styles.content (or css depends on what you're using)
-.... different plugins
-+ext Language
main template
In this case all your definitions are placed in the right order and your
page should be able to display both languages. You can try this by
appending a simple &L=1 (or 2, depends on your language-id) to any link
in the frontend. You should know be able to see the different language page.
Your language menu is made available as follows:
copy the langauge-script from media to your fileadmin folder or make
sure it is in your media - folder.
Then insert a marker in your HTML-Template (I normally would call it
###LANGUAGE_SELECTOR###
in your page template setup you have to enable that marker:
first create a temp-object
temp.language = PHP_SCRIPT
temp.language.file = fileadmin/template/ext/languageMenu.php
then assign this one to your subpart
marker.LANGUAGE_SELECTOR < temp.language
That should do the trick.
HTH
Florian
More information about the TYPO3-english
mailing list