Index: content_taxonomy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_taxonomy/content_taxonomy.module,v
retrieving revision 1.2.2.14
diff -u -r1.2.2.14 content_taxonomy.module
--- content_taxonomy.module	3 Sep 2007 12:27:11 -0000	1.2.2.14
+++ content_taxonomy.module	20 Nov 2007 07:42:17 -0000
@@ -213,6 +237,7 @@
  */
 function content_taxonomy_terms_by_field($node, $vid, $parent = NULL, $depth) {
   if (is_numeric($parent) && $depth == 1) {
+    $parent = content_taxonomy_translate_term($parent, $node);
     $result = db_query("SELECT n.tid FROM {term_hierarchy} h, {term_node} n WHERE
       n.nid = %d AND n.tid = h.tid AND h.parent = %d", $node->nid, $parent);
     
@@ -245,4 +270,41 @@
   }
 }
 
-?>
\ No newline at end of file
+/**
+ * helper function to translate term id's to the equivalent term in
+ * translated vocabularies
+ */
+function content_taxonomy_translate_term($tid, $node = NULL) {
+  if ($tid && module_exists('translation') && module_exists('i18n')) {
+    $lang = NULL;
+    if ($node) {
+      $lang = i18n_node_get_lang($node->nid, NULL);
+    }
+    if (!$lang) {
+      $lang = module_invoke('i18n', 'selection_mode', 'params');
+    }
+    $tid  = module_invoke('translation', 'term_tid', $tid, $lang, $tid);
+  }
+
+  return $tid;
+}
+
+/**
+ * helper function to translate an array of term id's to their equivalents in
+ * translated vocabularies
+ */
+function content_taxonomy_translate_terms($tids, $node = NULL) {
+  if (!is_array($tids)) {
+    return content_taxonomy_translate_term($tids, $node);
+  }
+
+  array_walk($tids,
+             create_function(
+               '&$tid',
+               '$tid = content_taxonomy_translate_term($tid, $node);')
+            );
+
+  return $tids;
+}
+
+?>
Index: content_taxonomy_options.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_taxonomy/content_taxonomy_options.module,v
retrieving revision 1.1.4.7
diff -u -r1.1.4.7 content_taxonomy_options.module
--- content_taxonomy_options.module	13 Aug 2007 14:17:55 -0000	1.1.4.7
+++ content_taxonomy_options.module	20 Nov 2007 07:20:31 -0000
@@ -93,7 +93,7 @@
       $default_values = array_keys($field['widget']['default_value']);
      }
   }
-  
+  $default_values = content_taxonomy_translate_terms($default_values);
   
   switch ($op) {
     case 'form':
@@ -176,6 +176,8 @@
  */
 function content_taxonomy_options_array($vid, $parent = NULL, $depth = 0, $blank_field = TRUE, $show_depth = FALSE) {
   $options = array();
+
+  $parent = content_taxonomy_translate_term($parent);
   
   if ($depth == 1) {
     $tree = taxonomy_get_children($parent, $vid);
@@ -211,6 +213,9 @@
   if (!$field['multiple']) {
     $options[0] = t('---');
   }
+
+  $parent = content_taxonomy_translate_term($parent);
+  $group_parent = content_taxonomy_translate_term($group_parent);
   
   //if children in no group
   $default_terms = taxonomy_get_children($parent);
