diff --git a/src/main/java/edu/kit/typicalc/view/main/AssumptionExampleContent.java b/src/main/java/edu/kit/typicalc/view/main/AssumptionExampleContent.java index e34eb5d..b97fb52 100644 --- a/src/main/java/edu/kit/typicalc/view/main/AssumptionExampleContent.java +++ b/src/main/java/edu/kit/typicalc/view/main/AssumptionExampleContent.java @@ -20,7 +20,7 @@ import com.vaadin.flow.component.textfield.TextField; public class AssumptionExampleContent extends VerticalLayout { private static final long serialVersionUID = -8157345417001452273L; - private static final String SELECTED_TERM_BAR_ID = "selected-term-bar"; // exchange with better name + private static final String SELECTED_TERM_BAR_ID = "selected-term-bar"; private static final String SELCETED_TERM_ID = "selected-term"; /** @@ -37,10 +37,11 @@ public class AssumptionExampleContent extends VerticalLayout { selectedTerm.setReadOnly(true); selectedTerm.setId(SELCETED_TERM_ID); - Icon goBack = VaadinIcon.ANGLE_DOUBLE_LEFT.create(); - goBack.addClickListener(event -> backwardsCallback.run()); + Icon backButton = VaadinIcon.ANGLE_DOUBLE_LEFT.create(); + backButton.addClickListener(event -> backwardsCallback.run()); + backButton.getElement().setAttribute("title", getTranslation("root.backButtonTooltip")); - VerticalLayout selectedTermBar = new VerticalLayout(goBack, selectedTerm); + VerticalLayout selectedTermBar = new VerticalLayout(backButton, selectedTerm); selectedTermBar.setId(SELECTED_TERM_BAR_ID); this.add(selectedTermBar); diff --git a/src/main/resources/language/translation_de.properties b/src/main/resources/language/translation_de.properties index cbc45e6..09dfa1b 100644 --- a/src/main/resources/language/translation_de.properties +++ b/src/main/resources/language/translation_de.properties @@ -168,6 +168,7 @@ root.lastStepTooltip=Letzter Schritt root.firstStepTooltip=Erster Schritt root.previousStepTooltip=Vorheriger Schritt root.nextStepTooltip=Nächster Schritt +root.backButtonTooltip=Zurück root.selectedTerm=Ausgewählter Term root.absLetLatex=\ diff --git a/src/main/resources/language/translation_en.properties b/src/main/resources/language/translation_en.properties index f2609e1..278cfb6 100644 --- a/src/main/resources/language/translation_en.properties +++ b/src/main/resources/language/translation_en.properties @@ -157,6 +157,7 @@ root.lastStepTooltip=Last step root.firstStepTooltip=First step root.previousStepTooltip=Previous step root.nextStepTooltip=Next step +root.backButtonTooltip=Back root.selectedTerm=Selected term root.absLetLatex=\