mirror of https://github.com/BOINC/boinc.git
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:
parent
dcb2027a5c
commit
1568553637
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue