Drupal: Override "Home" menu item to use translations

The Home menu is baked into Drupal and thus seems reluctant to accept translations from bts(); override the menu template to force the use of translations as available

(DBOINCP-222)
This commit is contained in:
Tristan Olive 2015-12-15 22:56:54 -05:00
parent dcb2027a5c
commit 1568553637
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ function boinc_links__system_main_menu($links, $menu, $element) {
if ($i == 1) $classes[] = 'first';
if ($i == $item_count) $classes[] = 'last';
$html .= '<li class="' . implode(' ', $classes) .'">';
if ($link['title'] == 'Home') {
$link['title'] = bts('Home');
}
if (module_exists('privatemsg')) {
// Put a new mail notification next to the Account menu item
if ($link['href'] == 'dashboard') {