From cca685d0c7772f023636f4887b8faf92c98fde3e Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 18 Jun 2019 10:09:47 +0100 Subject: [PATCH] JAL-3187 i18n show linked features checkboxes --- resources/lang/Messages.properties | 2 ++ resources/lang/Messages_es.properties | 2 ++ src/jalview/gui/FeatureSettings.java | 11 ++++++++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index f095290..fe7a401 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -1405,3 +1405,5 @@ label.pca = PCA label.create_image_of = Create {0} image of {1} label.click_to_edit = Click to edit, right-click for menu label.by_annotation_tooltip = Annotation Colour is configured from the main Colour menu +label.show_linked_features = Show {0} features +label.on_top = on top \ No newline at end of file diff --git a/resources/lang/Messages_es.properties b/resources/lang/Messages_es.properties index ec7eb5d..5346f68 100644 --- a/resources/lang/Messages_es.properties +++ b/resources/lang/Messages_es.properties @@ -1406,3 +1406,5 @@ label.pca = ACP label.create_image_of = Crear imagen {0} de {1} label.click_to_edit = Haga clic para editar, clic en el botón derecho para ver el menú label.by_annotation_tooltip = El color de anotación se configura desde el menú principal de colores +label.show_linked_features = Características de {0} +label.on_top = encima \ No newline at end of file diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 5178949..441dca7 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -1276,8 +1276,12 @@ public class FeatureSettings extends JPanel MessageManager.getString("label.transparency_tip")); boolean nucleotide = af.getViewport().getAlignment().isNucleotide(); - JCheckBox showComplement = new JCheckBox( - "Show " + (nucleotide ? "protein" : "CDS") + " features"); + String text = MessageManager.formatMessage("label.show_linked_features", + nucleotide + ? MessageManager.getString("label.protein") + .toLowerCase() + : "CDS"); + JCheckBox showComplement = new JCheckBox(text); showComplement.setSelected(af.getViewport().isShowComplementFeatures()); showComplement.addActionListener(new ActionListener() { @@ -1290,7 +1294,8 @@ public class FeatureSettings extends JPanel } }); - JCheckBox showComplementOnTop = new JCheckBox("on top"); + JCheckBox showComplementOnTop = new JCheckBox( + MessageManager.getString("label.on_top")); showComplementOnTop .setSelected(af.getViewport().isShowComplementFeaturesOnTop()); showComplementOnTop.addActionListener(new ActionListener() -- 1.7.10.2