Let the user change language with a select
This is what i did in the end:

php 

$path = drupal_is_front_page() ? '&lt;front&gt;' : $_GET['q'];
$type = 'language_url';
global $language ;
$lang_name = $language-&gt;language ;
$links = language_negotiation_get_switch_links($type, $path);
$languages =array();
$htmlSelect = "&lt;select id='selezioneLingua'&gt;";
foreach ($links-&gt;links as $id =&gt; $link) {
    $prefix = $link['language']-&gt;prefix;
    $selected = '';
    if ($lang_name == $prefix){
        fb('same');
        $selected = 'selected';
    }
    $htmlSelect .= "&lt;option $selected value='$prefix'&gt;$link[title]&lt;/option&gt;";
    $href = ($link['href'] === '&lt;front&gt;') ? '' : '/'.$link['href'];
    $languages[$link['language']-&gt;prefix] = "?q=".$link['language']-&gt;prefix.$href;
}
$htmlSelect .= "&lt;/select&gt;";
drupal_add_js(array ("languagepages" =&gt; $languages), 'setting')


javascript:

jQuery('#selezioneLingua').change(function(){
    var val = jQuery(this).val();
    var languages = Drupal.settings.languagepages;
    window.location.href = languages[val];
});