DJ NightLife wrote:Anyone?
Plus, is it possible to display "English" when site is in french and vice versa instead of always displaying both ?
Thanks !
Thisi is an old topic, but if someone is serching for this answer right now (like I did), here is my solution:
- Code: Select all
<ul>
<?php foreach(qtrans_getSortedLanguages() as $language) :?>
<?php if ($language != qtrans_getLanguage())://exclude current language?>
<li id="contentlang-".$language>
<a href="<?php echo qtrans_convertURL('',$language);?>">
<img src="<?php bloginfo('template_directory'); ?>/images/<?php echo $language ?>.png"/>
</a>
</li>
<?php endif;?>
<?php endforeach;?>
</ul>
With the code above you have to create flag images with names like fr.png, en.png etc etc.