Index: country_code.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/country_code/country_code.module,v
retrieving revision 1.50
diff -u -p -r1.50 country_code.module
--- country_code.module	21 Oct 2008 11:15:38 -0000	1.50
+++ country_code.module	21 Oct 2008 16:40:35 -0000
@@ -429,6 +429,21 @@ function country_code_block($op = 'list'
 }
 
 /**
+ * Implementation of hook_link_alter().
+ *
+ * Remove links not supported by current country.
+ */
+function country_code_link_alter(&$links, &$node) {
+  foreach($links as $module => $link) {
+    if (strpos($module, 'node_translation') === 0) {
+      if (substr($link['language']->language, -3, 3) != substr($node->language, -3, 3)) {
+        unset($links[$module]);
+      }
+    }
+  }
+}
+
+/**
  * Implementation of hook_translation_link_alter().
  *
  * Strip out languages not supported by current country.
