JAL-2124 i18n of 'All' menu item
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:41:20 +0000 (11:41 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:41:20 +0000 (11:41 +0100)
src/jalview/appletgui/APopupMenu.java

index 948c8e5..b6cc7c0 100644 (file)
@@ -70,8 +70,6 @@ import java.util.Vector;
 public class APopupMenu extends java.awt.PopupMenu implements
         ActionListener, ItemListener
 {
-  private static final String ALL_ANNOTATIONS = "All";
-
   Menu groupMenu = new Menu();
 
   MenuItem editGroupName = new MenuItem();
@@ -1326,7 +1324,8 @@ public class APopupMenu extends java.awt.PopupMenu implements
     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);