Index: l10n_community/translate.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/translate.inc,v
retrieving revision 1.1.2.7.2.12
diff -u -r1.1.2.7.2.12 translate.inc
--- l10n_community/translate.inc	16 Aug 2009 15:00:51 -0000	1.1.2.7.2.12
+++ l10n_community/translate.inc	21 Aug 2009 14:29:22 -0000
@@ -63,6 +63,26 @@
   return $output;
 }
 
+function l10n_community_theme_registry_alter(&$theme_registry) {
+
+  $theme_registry['menu_item_link']['function'][] = 'l10n_community_menu_item_link';
+  $theme_registry['menu_item_link']['theme paths'][] = drupal_get_path('module', 'l10n_community'). '/translate.inc';
+
+}
+
+function l10n_community_menu_item_link($link) {
+  if (empty($link['localized_options'])) {
+    $link['localized_options'] = array();
+  }
+
+  if(arg(0) == 'translate' && ($link['title'] == t('Browse') || $link['title'] == t('Translate') || $link['title'] == t('Export'))) {
+    $project = isset($_GET['project']) ? $_GET['project'] : FALSE;
+    $query = isset($project) ? array('project' => $project) : array();
+    return l($link['title'], $link['href'], array('query' => $query), $link['localized_options']);
+  }
+    return l($link['title'], $link['href'], $link['localized_options']);
+}
+
 // = Filter form handling ======================================================
 
 /**
