JAL-2124 i18n of "All" menu item
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:37:01 +0000 (11:37 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:37:01 +0000 (11:37 +0100)
src/jalview/gui/PopupMenu.java

index 497f3ba..569fcec 100644 (file)
@@ -91,8 +91,6 @@ import javax.swing.JRadioButtonMenuItem;
  */
 public class PopupMenu extends JPopupMenu
 {
-  private static final String ALL_ANNOTATIONS = "All";
-
   JMenu groupMenu = new JMenu();
 
   JMenuItem groupName = new JMenuItem();
@@ -756,7 +754,8 @@ public class PopupMenu extends JPopupMenu
     showMenu.removeAll();
     hideMenu.removeAll();
 
-    final List<String> all = Arrays.asList(ALL_ANNOTATIONS);
+    final List<String> all = Arrays.asList(new String[] { MessageManager
+            .getString("label.all") });
     addAnnotationTypeToShowHide(showMenu, forSequences, "", all, true, true);
     addAnnotationTypeToShowHide(hideMenu, forSequences, "", all, true,
             false);