Changing language in drupal
May be you are looking for language_negotiation_get_switch_links


  Return the language switch links for the given language.


$path = drupal_is_front_page() ? '&lt;front&gt;' : $_GET['q'];
$links = language_negotiation_get_switch_links($type, $path);