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.
Just me or anyone else? Seems odd that the page title doesn't/won't translate when quite a bit of other text does. Have tried putting 'Glossary' & 'Glossaire' into String Overrides but no joy. Title not set as a translatable string? Do I need to alter code in the module or inc file? The page title for the glossary terms themselves does translate, but not the main page or sub (letter) pages. Cheers.
Comments
Comment #1
Mr P CreditAttribution: Mr P commentedIs it just me with this problem???
/en/glossary
Page title = Glossary
/fr/glossary
Page title = Glossary
I've tried putting 'Glossary' and 'Glossaire' into Strings Override - this method worked OK for the contact page (en/contact and fr/contact).
Comment #2
Mr P CreditAttribution: Mr P commentedComment #3
Mr P CreditAttribution: Mr P commentedChanged glossary.module:
// drupal_set_title($voc->name);
drupal_set_title(t($voc->name));
That did it.
These don't work either but haven't fixed yet:
'title' => decode_entities(t('Edit @name', array('@name' => drupal_strtolower($vocabulary->name)))),
'#title' => t('Detailed definition of @term', array('@term' => $term->name)),
Comment #4
Mr P CreditAttribution: Mr P commentedComment #5
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedhad the same problem. Did the trick for me.
line 821 was drupal_set_title(filter_xss_admin($voc->name));
added t() function drupal_set_title(t(filter_xss_admin($voc->name)));
this should be committed
Comment #6
NancyDru