sample with a flags
go here and download brilliant icons of flags
http://famfamfam.com/lab/icons/flags/
lets assume that you have upload neeeded flags (lets imaging that we use Dutch , Ukranian, and Japan languages at site
so we need de.png , ua.png (and renaming it to uk.png course language code for ukranian isnt country code its uk), and jp.png to ja.png same as ukranian its its a little bit different than country code.
so. imagine that de.png,uk.png,ja.png located at http://example.com/flags/
lets take one of previous examples and changed it.
simple active languages flag only switcher
<?php
$str = "<div id='switchlangs'>";
$str .= "<h3>".__('Languages')."</h3>";
$str .= "<ul>";
foreach($GLOBALS['AviableLanguages'] as $_K=>$_I){
$str .= "<li>";
if ($_I['lang_shortcode'] != $language){
$str .= "<a href='".WPML::LanguageLink($_SERVER['REQUEST_URI'], $_I['lang_shortcode'])."' title='".$_I['name']."'><img src='http://example.com/flags/".$_I['lang_shortcode'].".png' alt='".$_I['name']."' /></a>";
}
$str .= "</li>";
}
$str .= "</ul></div>";
echo $str;
?>
that was a simple dirty and ugly example you can style it via css and make various expmples =).