Merge branch 'Release_2_8_2_Branch_i18n' into Release_2_8_2_Branch
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 73be63e..4adeb83 100755 (executable)
@@ -42,20 +42,20 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
         MouseListener, MouseWheelListener, MouseMotionListener,
         ActionListener, AdjustmentListener, Scrollable
 {
-  final String HELIX = "Helix";
+  String HELIX = MessageManager.getString("label.helix");
 
-  final String SHEET = "Sheet";
+  String SHEET = MessageManager.getString("label.sheet");
 
   /**
    * For RNA secondary structure "stems" aka helices
    */
-  final String STEM = "RNA Helix";
+  String STEM = MessageManager.getString("label.rna_helix");
 
-  final String LABEL = "Label";
+  String LABEL = MessageManager.getString("label.label");
 
-  final String REMOVE = "Remove Annotation";
+  String REMOVE = MessageManager.getString("label.remove_annotation");
 
-  final String COLOUR = "Colour";
+  String COLOUR = MessageManager.getString("action.colour");
 
   public final Color HELIX_COLOUR = Color.red.darker();
 
@@ -307,7 +307,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
     else if (evt.getActionCommand().equals(COLOUR))
     {
       Color col = JColorChooser.showDialog(this,
-              "Choose foreground colour", Color.black);
+              MessageManager.getString("label.select_foreground_colour"), Color.black);
 
       for (int i = 0; i < av.getColumnSelection().size(); i++)
       {
@@ -673,10 +673,8 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
               && aa[row].annotations[res].description != null
               && aa[row].annotations[res].description.length() > 0)
       {
-        this.setToolTipText("<html>"
-                + JvSwingUtils
-                        .wrapTooltip(aa[row].annotations[res].description)
-                + "</html>");
+        this.setToolTipText(JvSwingUtils
+                        .wrapTooltip(true, aa[row].annotations[res].description));
       }
       else
       {