glossary page title doesn't/won't translate.

Mr P - June 4, 2009 - 17:31
Project:Glossary
Version:6.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

#1

Mr P - June 15, 2009 - 17:26

Is 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).

#2

Mr P - June 15, 2009 - 17:45
Category:support request» bug report

#3

Mr P - June 17, 2009 - 19:02
Status:active» fixed

Changed 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)),

#4

Mr P - June 17, 2009 - 15:04
Status:fixed» needs review
 
 

Drupal is a registered trademark of Dries Buytaert.