Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having a problem with the latest D6 version of this module. My vocabulary titles are not being translated on the faceted search blocks. All the translated terms are showing just fine, but their titles are not. It shows the original English vocabulary name. I have already translated these strings with the Drupal Translate Interface tool but for some reason they are not displaying the translated text. Isn't this supported with this module?
Comments
Comment #1
drupalfan81 CreditAttribution: drupalfan81 commentedUpdate?
Comment #2
drupalfan81 CreditAttribution: drupalfan81 commentedShouldn't these be translated? Does this piece of code from this module translate the Vocabulary Name or just the terms?
/**
* Localize a vocabulary by replacing its name attribute with its localized
* version for the current language.
*/
function _taxonomy_facets_localize_vocabulary(&$vocabulary) {
// If this vocabulary supports localization.
if (module_exists('i18ntaxonomy') && i18ntaxonomy_vocabulary($vocabulary->vid) == I18N_TAXONOMY_LOCALIZE) {
$vocabulary->name = tt("taxonomy:vocabulary:$vocabulary->vid:name", $vocabulary->name);
}
}
Comment #3
papirrin CreditAttribution: papirrin commented+1