Closed (outdated)
Project:
Glossary
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2009 at 17:31 UTC
Updated:
1 May 2017 at 17:22 UTC
Jump to comment: Most recent
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 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 commentedComment #3
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 commentedComment #5
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