In taxonomy_breadcrumb.inc I added an extra check for the i18n_string() function, the Drupal 7 counterpart of tt(). (sorry for the lack of a patch)

/**
 * Helper function for when i18ntaxonomy module is not installed.
 */
function _taxonomy_breadcrumb_tt($string_id, $default, $language = NULL) {
-  return function_exists('tt') ? tt($string_id, $default, $language) : $default;
+  if (function_exists('tt')) return tt($string_id, $default, $language);
+  elseif (function_exists('i18n_string')) return i18n_string($string_id, $default, array('langcode' => $language));
+  else return $default;
}

Comments

jantoine’s picture

Status: Active » Closed (duplicate)

Marking this as a duplicate of #1381966: i18n localization support.

sebto’s picture

Thanks! This patch works for me.

mkalbere’s picture

Issue summary: View changes

Work perfectly for me. Thanks.
Should be integrated.

jantoine’s picture

@mkalbere,

Did you try the patch in #1381966: i18n localization support? If we can get reviews on that patch, we can get it committed and get this fixed for everyone.