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
Comment #1
jantoine commentedMarking this as a duplicate of #1381966: i18n localization support.
Comment #2
sebto commentedThanks! This patch works for me.
Comment #3
mkalbere commentedWork perfectly for me. Thanks.
Should be integrated.
Comment #4
jantoine commented@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.