If you insert %site_slogan in the individual pages pattern, it does not get translated into the actual website slogan and appears as actual string '%site_slogan'.
I reviewed the code and made changes to the module's function page_title_page_get_title() to add the translation for %site_slogan.
....
$site_name = variable_get('site_name', 'drupal');
$site_slogan = variable_get('site_slogan', '');
if ($drupal_title) {
$title = t($page_title_individual, array('%page_title' => $page_title, '%site_name' => $site_name, '%site_slogan' => $site_slogan));
}
else {
$title = t($page_title_front, array('%site_name' => $site_name, '%site_slogan' => $site_slogan));
}
return $title;
}
Please review and commit this if it's ok.
| Comment | File | Size | Author |
|---|---|---|---|
| page_title.module | 5.54 KB | freeman-1 |
Comments
Comment #1
robertdouglass commentedapplied, thanks.
Comment #2
(not verified) commented