Quellcode durchsuchen

add translation to filter labels

Armin Schrenk vor 2 Jahren
Ursprung
Commit
348bc2b2ec

+ 3 - 3
src/main/resources/fxml/health_check_details.fxml

@@ -42,15 +42,15 @@
 	</HBox>
 	<VBox spacing="3" VBox.vgrow="ALWAYS">
 		<HBox alignment="CENTER" spacing="6">
-			<Label fx:id="filterLbl" text="Filters">
+			<Label fx:id="filterLbl" text="%health.check.detail.listFilters.label">
 				<graphic>
 					<FontAwesome5IconView glyph="FUNNEL" glyphSize="${filterLbl.height}" styleClass="glyph-icon-muted"/>
 				</graphic>
 			</Label>
 			<Region minWidth="12" />
-			<Label text="Severity" labelFor="${severityChoiceBox}"/>
+			<Label text="%health.check.detail.listFilters.severity" labelFor="${severityChoiceBox}"/>
 			<ChoiceBox fx:id="severityChoiceBox" />
-			<Label text="Fix state" labelFor="${fixStateChoiceBox}"/>
+			<Label text="%health.check.detail.listFilters.fixState" labelFor="${fixStateChoiceBox}"/>
 			<ChoiceBox fx:id="fixStateChoiceBox" />
 		</HBox>
 		<ListView fx:id="resultsListView" VBox.vgrow="ALWAYS" visible="${!controller.checkSkipped}" fixedCellSize="25">

+ 3 - 0
src/main/resources/i18n/strings.properties

@@ -219,6 +219,9 @@ health.check.detail.checkFinished=The check finished successfully.
 health.check.detail.checkFinishedAndFound=The check finished running. Please review the results.
 health.check.detail.checkFailed=The check exited due to an error.
 health.check.detail.checkCancelled=The check was cancelled.
+health.check.detail.listFilters.label=Filter
+health.check.detail.listFilters.severity=Severity
+health.check.detail.listFilters.fixState=Fix state
 health.check.detail.fixAllSpecificBtn=Fix all of type
 health.check.exportBtn=Export Report
 ## Result view