[Typo3-german] ReaURL und languageMenu.php

Danny Gräfe danny at graefe-holztreppen.de
Sun Dec 18 18:24:16 CET 2005


Hallo NG !

noch erfolgreicher Installlation von RealUrl 1.0.0 auf meinem T3.8 System 
benötige ich noch einen Denkanstoß zu der Sprachumschaltung per Menu: Aus 
div. Threads
habe ich eine Version der Sprachumschaltung in untenstehender Form gefunden 
und eingebaut - leider ohne Erfolg - in die Datei 
typo3conf/ext/realurl/class.ux_tslib_fe.php
sollte eigentlich noch ein Hack rein der aber nicht rein kann, da ich diese 
Datei garnicht auf den System hab?!

Hat jemand erfolgreich ein ähnliches Sprachmenu mit REALURL in der 
Konstellation
zum laufen gebracht?

Welche Anpassungen sind zu treffen ?

Danke

D.Gräfe


<?php

/***************************************************************

* Copyright notice

*

* (c) 1999-2004 Kasper Skaarhoj (kasper at 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!

***************************************************************/

$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'];

}

$pointer = '<img src="t3lib/gfx/content_client.gif" width="7" height="10" 
align="middle" alt="" />';

$flags[] = ($GLOBALS['TSFE']->sys_language_uid==0?$pointer:'').'<a 
href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=0&ch_lang=1').'" 
target="_top"><img src="fileadmin/template/flag_de.gif" width="21" 
height="13" hspace="5" border="0" alt="" /></a>';

$flags[] = ($GLOBALS['TSFE']->sys_language_uid==2?$pointer:'').'<a 
href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=2&ch_lang=1').'" 
target="_top"><img 
src="fileadmin/template/flag_uk'.($langArr[1]?'':'_d').'.gif" width="21" 
height="13" hspace="5" border="0" alt="" /></a>';

$flags[] = ($GLOBALS['TSFE']->sys_language_uid==3?$pointer:'').'<a 
href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=3&ch_lang=1').'" 
target="_top"><img 
src="fileadmin/template/flag_fr'.($langArr[1]?'':'_d').'.gif" width="21" 
height="13" hspace="5" border="0" alt="" /></a>';

$flags[] = ($GLOBALS['TSFE']->sys_language_uid==4?$pointer:'').'<a 
href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=4&ch_lang=1').'" 
target="_top"><img 
src="fileadmin/template/flag_pl'.($langArr[1]?'':'_d').'.gif" width="21" 
height="13" hspace="5" border="0" alt="" /></a>';

$flags[] = ($GLOBALS['TSFE']->sys_language_uid==5?$pointer:'').'<a 
href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=5&ch_lang=1').'" 
target="_top"><img 
src="fileadmin/template/flag_cz'.($langArr[1]?'':'_d').'.gif" width="21" 
height="13" hspace="5" border="0" alt="" /></a>';

$content = '<table border="0" cellpadding="0" cellspacing="0"><tr><td><img 
src="clear.gif" width="30" height="1" alt="" 
/></td><td>'.implode('',$flags).'</td></tr></table>';

?>





More information about the TYPO3-german mailing list