Custom links to switch language in Drupal 6
What doesn't work for you with the language switcher ?
If you want to reproduce its behavior, have a look at its code and try to do something equal.

Here is some code:

$path = drupal_is_front_page() ? '&lt;front&gt;' : $_GET['q'];
$languages = language_list('enabled');
$links = array();
foreach ($languages[1] as $language) {
  $links[$language-&gt;language] = array(
    'href' =&gt; $path, 
    'title' =&gt; $language-&gt;native, 
    'language' =&gt; $language, 
    'attributes' =&gt; array('class' =&gt; 'language-link'),
  );
}
drupal_alter('translation_link', $links, $path);
//dpm($links);

foreach ($links as $link) {
  echo t('Link for ') . l($link['title'], $link['href']) . '&lt;br /&gt;';
}