also ich hab nu schon alles mögliche probiert nur leider ohne gewünschten Erfolg.
Folgendes Problem:
ich habe eine Sprachumschaltung per Flaggen eingerichtet. Das ganze funktioniert auch bei umschalten von dt auf en und umgekehrt. Wobei auch hier schon eines auffällt und zwar wenn ich auf englisch umschalte, erscheint nicht "en/" als url Ergänzung sondern "de/". Ich habe die Sprachen im Projekt eingerichtet und die id's korrekt gesetzt. Auch in der example_languagemenu.php habe ich die ids angepasst.
Jetzt habe ich noch weitere Sprachen eingerichtet.
ID 1 = engl.
ID 2 = espan.
ID 3 = franz.
ID 4 = chines.
In meiner Flaggenauswahl erscheint als link bei espan die language url "dk/" und bei franz und chin nichts! die Flaggen werden aber korrekt angezeigt. Also wenn die Seite in der Sprache verfügbar ist wird die Flagge in Farbe dargestellt.
die example_languagemenu.php schaut so aus:
<?php
/***************************************************************
* Copyright notice
*
* (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
* A copy is found in the textfile GPL.txt and important notices to the license
* from the author is found in LICENSE.txt distributed with these scripts.
*
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if (!is_object($this)) die ('Error: No parent object present.');
// First, select all pages_language_overlay records on the current page. Each represents a possibility for a language.
$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'];
}
$linkarray = array(
'0' => '',
'1' => '',
'3' => '',
'2' => '',
'4' => ''
);
$localTempl = new t3lib_TStemplate;
foreach($linkarray as $key=>$lang){
$LD = $localTempl->linkData($GLOBALS['TSFE']->page,
'', // $oTarget
'', // $no_cache
'', // $script
'', // $overrideArray
'&L='.$key, //.$def['uid'], // $addParams, need the & prefix to work
'0');
$linkarray[$key] = $LD['totalURL'];
}
$pointer = '<img src="fileadmin/language_menu_arrow.gif" width="7" height="10" alt="" />';
$flags = array();
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==0?$pointer:'').'<a href="'.htmlspecialchars($linkarray[0]).'" target="_top"><img src="media/uploads/flag_de.gif" width="16" height="10" hspace="5" border="0" alt="" /></a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==1?$pointer:'').'<a href="'.htmlspecialchars($linkarray[1]).'" target="_top"><img src="media/uploads/flag_uk'.($langArr[1]?'':'_dgif').'.gif" width="16" height="10" hspace="5" border="0" alt="" /></a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==2?$pointer:'').'<a href="'.htmlspecialchars($linkarray[2]).'" target="_top"><img src="media/flags/flag_fr'.($langArr[2]?'':'_dgif').'.gif" width="16" height="10" hspace="5" border="0" alt="" /></a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==3?$pointer:'').'<a href="'.htmlspecialchars($linkarray[3]).'" target="_top"><img src="media/flags/flag_es'.($langArr[3]?'':'_dgif').'.gif" width="16" height="10" hspace="5" border="0" alt="" /></a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==4?$pointer:'').'<a href="'.htmlspecialchars($linkarray[4]).'" target="_top"><img src="media/flags/flag_cn'.($langArr[4]?'':'_dgif').'.gif" width="16" height="10" hspace="5" border="0" alt="" /></a>';
$content = implode('',$flags);
?>
weiß jemand weiter?