I'm trying to set up a multilanguage site with typo3, but Im having some trouble. The default language of the site is German, but I also want to have it in English and French. So I went to define 2 more languages: English with ID=2 and French with ID=3
Next I added this typoscript to my template:
config.linkVars = L
config.uniqueLinkVars = 2
config.sys_language_overlay = content_fallback
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de-DE
config.sys_language_uid = 0
[globalVar = GP:L = 2]
config.language = en
config.locale_all = en_EN
config.htmlTag_langKey = en-EN
config.sys_language_uid = 2
[globalVar = GP:L = 3]
config.language = fr
config.sys_language_uid = 3
config.locale_all = fr_FR
config.htmlTag_langKey = fr-FR
[end]
And then I added this language menu, from the extension srlanguagemenu:
10 < plugin.tx_srlanguagemenu_pi1
10{
languagesUidsList = 0,2,3
defaultLayout = 2
showLinkWithFlag = 0
showCurrent = 1
}
But the menu only shows "English". This is the exact markup:
<div class="tx-srlanguagemenu-pi1">
<div class="CUR"><img src="typo3/gfx/content_client.gif" alt="" style="width:7px; height:10px;"><a href="index.php?id=46">English</a></div>
<div class="SPC"> </div> <div class="INACT"></div>
<div class="SPC"> </div> <div class="INACT"></div>
</div>
Also. In the menu, the name of the pages doesn't show the translated version.
What am I doing wrong?
You need to translate not only the content of your page, but also the page. This is done via creating an "alternative_page_language" ("alternative Seitensprache" in german).
You can create an multilanguage TS menu via HMENU.special = language.
For working with translations, have a look at the INFO-Modul. There is a "Localization Overview", don't miss it:) I guess you already found the language View in the Page Modul.