It took me quite some time to figure out the relationship between taxonomy_menu and the translation module. In order to properly use taxonomy_menu, the following lines need to be added to the function translation_url($url, $lang) in translation.module just before returning:
elseif (preg_match("/^(taxonomy_menu\/\d+)\/([^\/]*)$/",$url,$matches)) {//or at a taxonomy-listing?
if ($str_tids = translation_taxonomy_tids($matches[2], $lang)) {
$url = "$matches[1]/$str_tids";
}
}
Comments
Comment #1
juanfe commentedI had opened another issue about this here, hadn't seen this one. José, the maintainer for i18n, had been commenting on it.
We seem to have come up with almost exactly the same code (your preg_replace seems more complete than mine).
http://drupal.org/node/108070
Thoughts?
-jfr