Hallo Leute,
zum ersten Mal habe ich eine Mehrsprachigkeit auf Basis von example_languageMenu.php erstellt:
<?php
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages_language_overlay', 'pid='.intval($GLOBALS['TSFE']->id).$GLOBALS['TSFE']->sys_page->enableFields('pages_language_overlay'), 'sys_language_uid');
$langArr = array();
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$langArr[$row['sys_language_uid']] = $row['title'];
}
if($_GET['L']==3)
$content = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']-">id.'&L=0&type=2').'"><img src="media/uploads/flag_de.gif" width="21" height="13" border="0" alt="" /></a>';
else
$content = '<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']-">id.'&L=3&type=2').'"><img src="media/uploads/flag_uk.gif" width="21" height="13" border="0" alt="" /></a>';
?>
config.linkVars = L
config.sys_language_uid = 0
config.language = de
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = en
[global]
Das einziege Problem ist, dass beim Wechsel zu Englisch der Textwechsel erst nach einem erneuten Menüklick geschieht. Für mich sieht das nach einem Cach-Problem aus.
Hier ist die URL: www.you-jazz.de
Danke