Members: 16,996
Threads: 38,867
Posts: 159,477
Online: 41

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > International > Italian - Italiano > Componenti

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 30.11.2005, 17:15   #1 (permalink)
Junior Mamber
 
Join Date: Oct 2005
Posts: 39
mao80 is on a distinguished road
Question Mambelfish: sapere che lingua e' stata selezionata...

Salve,

ho sviluppato un template per un sito multilingue (utilizzando Mambelfish 1.5). Per ogni lingua (ne ho tre) viene visualizzata un'immagine differente nell'header in base al valore passato nel campo lang dell'url...
il problema e' che se come url ho index.php non sa che immagine selezionare (e ha pure ragione ).

C'e' un modo per sapere che lingua e' selezionata (a parte via url ovviamente)? Immagino di si, dato che comunque il sito mantiene la lingua anche in index.php... Qualcuno puo' aiutarmi??? Ho guardato un po' i file di Mambo ma non ho trovato nulla
mao80 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 30.11.2005, 18:12   #2 (permalink)
Junior Mamber
 
Join Date: Oct 2005
Posts: 39
mao80 is on a distinguished road
Default Re: Mambelfish: sapere che lingua e' stata selezionata...

Ehm... ho risolto da solo con questo codice

PHP Code:
<?php
         
switch ($GLOBALS['mosConfig_lang']) 
         {
             case 
english: {$str "en"; break;}
             case 
italian: {$str "it"; break;}
             case 
french: {$str "fr"; break;}
         }
        
         echo 
'<div id="Header_'.$str.'"></div>';
?>
Lo so non e' molto elegante, ma diciamo che e' funzionale...
Ciao, scusate il disturbo
mao80 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[offtopic]IL problema incombe si chiama PALLADIUM th3n0x Problematiche generali 4 08.06.2006 16:20
Che ne pensate del "forum" di mamboserver.it? Sailor Problematiche generali 40 25.07.2005 16:48
MamboItaliano gin Annunci 11 07.03.2005 11:55
bug di sicurezza Energit extrabit Problematiche generali 14 23.01.2005 21:25


All times are GMT +2. The time now is 04:59.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.