--- orig_translation.module	Tue Jun 05 17:07:51 2007
+++ translation.module	Tue Jun 05 17:32:19 2007
@@ -137,6 +137,13 @@ function translation_admin_settings(){
     '#options' => array(t('Disabled'), t('Enabled')),
     '#description' => t("If enabled some worklow will be provided for content translation."),
   );  
+  $form['i18n_translation_hide_active_language'] = array(
+    '#type' => 'radios',
+    '#title' => t('Hide active language'),
+    '#default_value' => variable_get('i18n_translation_hide_active_language', 0),
+    '#options' => array(t('No'), t('Yes')),
+    '#description' => t("Hide active language from language block."),
+  );
   return system_settings_form($form);  
 }
 
@@ -1040,8 +1047,10 @@ function translation_get_links($path = '
   $current = i18n_get_lang();
   $names = $names ? $names : i18n_languages('native');
   foreach (array_keys(i18n_supported_languages()) as $lang){
+    if ($current != $lang || variable_get('i18n_translation_hide_active_language', 0) == 0) {
       $url = translation_url($path, $lang);
       $links[]= theme('i18n_link', $names[$lang], i18n_path($url, $lang) , $lang, $query);
+    }
   }
   return $links;  
 }
