diff --git a/i18n_taxonomy/i18n_taxonomy.module b/i18n_taxonomy/i18n_taxonomy.module index 09658e42056d2e4789f26742b9733ed09b50d0ac..78f1bd62944aa84231cb3c84c59380b96061f36a 100644 --- a/i18n_taxonomy/i18n_taxonomy.module +++ b/i18n_taxonomy/i18n_taxonomy.module @@ -803,8 +803,8 @@ function i18n_taxonomy_translate_terms($taxonomy, $langcode, $fullterms = TRUE) $mode = i18n_taxonomy_vocabulary_mode($index); // We translate just some vocabularies: translatable, fixed language // Fixed language ones may have terms translated, though the UI doesn't support it - if ($mode == I18N_MODE_LANGUAGE || $mode == I18N_MODE_TRANSLATE) { - $translation[$index] = i18n_taxonomy_translate_terms($tdata, $langcode, $filter, $fullterms); + if ($mode & I18N_MODE_LANGUAGE || $mode & I18N_MODE_TRANSLATE) { + $translation[$index] = i18n_taxonomy_translate_terms($tdata, $langcode, $fullterms); } elseif ($fullterms) { $translation[$index] = array_map('_i18n_taxonomy_filter_terms', $tdata); @@ -856,7 +856,7 @@ function i18n_taxonomy_translate_terms($taxonomy, $langcode, $fullterms = TRUE) function i18n_taxonomy_localize_terms($terms, $fields = array('name')) { $terms = is_array($terms) ? $terms : array($terms); foreach ($terms as $index => $term) { - if (i18n_taxonomy_vocabulary_mode($term->vid) === I18N_MODE_LOCALIZE) { + if (i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE)) { foreach ($fields as $property) { $term->$property = i18n_string(array('taxonomy', 'term', $term->tid, $property), $term->$property); }