From 1568553637b15d6372dd8eac947f6fcbeb46f15f Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Tue, 15 Dec 2015 22:56:54 -0500 Subject: [PATCH] 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) --- drupal/sites/default/boinc/themes/boinc/template.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drupal/sites/default/boinc/themes/boinc/template.php b/drupal/sites/default/boinc/themes/boinc/template.php index c5a71fd23c..2ae0df3c43 100644 --- a/drupal/sites/default/boinc/themes/boinc/template.php +++ b/drupal/sites/default/boinc/themes/boinc/template.php @@ -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 .= '
  • '; + 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') {