Index: taxonomy_menu.module
===================================================================
RCS file: /pph/v6/modules/taxonomy_menu/taxonomy_menu.module,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- taxonomy_menu.module   2 Oct 2008 08:22:14 -0000   1.2
+++ taxonomy_menu.module   3 Oct 2008 11:02:25 -0000   1.3
@@ -1,5 +1,5 @@
 <?php
-// $Id: taxonomy_menu.module,v 1.2 2008-10-02 08:22:14 caoky Exp $
+// $Id: taxonomy_menu.module,v 1.3 2008-10-03 11:02:25 caoky Exp $
 
 /**
  * @author Jonathan Chaffer   <jchaffer@structureinteractive.com>
@@ -72,3 +72,11 @@
 function taxonomy_menu_taxonomy() {
   menu_rebuild();
 }
+/**
+ * Language filter
+ */
+function taxonomy_menu_access($term) {
+        $current_lang = i18n_get_lang();
+        $term_lang = (isset($term) && (!empty($term->language))) ? $term->language : '';
+        return ($term_lang == $current_lang) || ($term_lang == "") ;        
+}
