Catalog Block menu is not working with Entity Translation module.
To get the Catalog Block menu to work change uc_catalog.module line 259:
$tree = taxonomy_get_tree($vid);
to
$tree = taxonomy_get_tree($vid, 0, NULL, TRUE);

Comments

TR’s picture

Category: Bug report » Feature request
Status: Active » Needs review

Doesn't loading the entities for every taxonomy term have a severe impact on performance and memory usage, especially when you have a big catalog?

taxonomy_get_tree($vid, 0, NULL, FALSE) is the default, and I assume there's a reason for that.

TR’s picture

Status: Needs review » Active
TR’s picture

Version: 7.x-3.8 » 7.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)
Issue tags: -internationalization +i18n
TR’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

No further information provided.

liezie_D’s picture

i know this was posted a long time ago, but i was able to get my terms translated in the block by patching uc_catalog.module

in uc_catalog_block_view, update the foreach statement:
foreach ($tree as $knot) {
$seq++;
$knot->sequence = $seq;

//FORCE a translation of the term.
$translatedTerm = i18n_string_translate('/' . $language->language . '/catalog/' . $knot->tid, $knot->name, array());
$knot->name = $translatedTerm;

$knothole = new UcTreeNode($knot);
// Begin at the root of the tree and find the proper place.
$menu_tree->add_child($knothole);
}

Please, take not that in my custom module i add localized translations to my terms with this path:
'/' . $language->language . '/catalog/' . $tid

you will probably use the path array: array('taxonomy', 'term', $tid, 'name')
in which case you should change the line above. i have not tested if it works with the array path, but i expect it will.