From 7a940416a890d810d983de7bb80595ece20c0881 Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Fri, 22 Feb 2013 18:04:24 -0700 Subject: [PATCH] Remove alternate labels for tabs when they're the active one (This hasn't worked since April 2012 anyway) --- r2/r2/lib/menus.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/r2/r2/lib/menus.py b/r2/r2/lib/menus.py index 8eeecdfb9..4e8350ddc 100644 --- a/r2/r2/lib/menus.py +++ b/r2/r2/lib/menus.py @@ -43,17 +43,6 @@ class MenuHandler(StringHandler): except KeyError: return getattr(plurals, attr) -# selected menu styles, primarily used on the main nav bar -menu_selected=StringHandler(hot = _("what's hot"), - new = _("what's new"), - rising = _("what's rising"), - top = _("top scoring"), - controversial= _("most controversial"), - saved = _("saved"), - recommended = _("recommended"), - promote = _('promote'), - ) - # translation strings for every menu on the site menu = MenuHandler(hot = _('hot'), new = _('new'), @@ -374,13 +363,6 @@ class NamedButton(NavButton): NavButton.__init__(self, menutext, name if dest is None else dest, sr_path = sr_path, nocname=nocname, **kw) - def selected_title(self): - """Overrides selected_title to use menu_selected dictionary""" - try: - return menu_selected[self.name] - except KeyError: - return NavButton.selected_title(self) - class JsButton(NavButton): """A button which fires a JS event and thus has no path and cannot be in the 'selected' state"""