From 3e68a4057e4d72dda3807cdd85a2f14f9fd97ebd Mon Sep 17 00:00:00 2001 From: shota Date: Sat, 25 Jun 2022 15:55:32 +0200 Subject: [PATCH] Add more translation --- src/main/kotlin/dev/shota/decompiler/window/popup/About.kt | 5 +++-- src/main/resources/language.properties | 5 ++++- src/main/resources/language_de.properties | 5 ++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/dev/shota/decompiler/window/popup/About.kt b/src/main/kotlin/dev/shota/decompiler/window/popup/About.kt index 924dcd4..464d886 100644 --- a/src/main/kotlin/dev/shota/decompiler/window/popup/About.kt +++ b/src/main/kotlin/dev/shota/decompiler/window/popup/About.kt @@ -1,5 +1,6 @@ package dev.shota.decompiler.window.popup +import dev.shota.decompiler.window.menu.view.items.Language import javafx.geometry.Pos import javafx.scene.control.Button import javafx.scene.control.Label @@ -12,9 +13,9 @@ class About : Popup("help.about") { val root = VBox() root.alignment = Pos.CENTER root.children.add(Label("Decompiler")) - root.children.add(Label("Version ${javaClass.`package`.specificationVersion ?: "0.0.0"}")) + root.children.add(Label("${Language.get("about.version").value} ${javaClass.`package`.specificationVersion ?: "0.0.0"}")) root.children.add(Link("https://github.com/shotav/Decompiler")) - val button = Button("OK") + val button = Button(Language.get("about.ok").value) button.setOnAction { dispose() } root.children.add(button) run(root) diff --git a/src/main/resources/language.properties b/src/main/resources/language.properties index 2f004c4..2cadacb 100644 --- a/src/main/resources/language.properties +++ b/src/main/resources/language.properties @@ -24,4 +24,7 @@ help.about = About tab.close = Close tab.closeOthers = Close Others -tab.closeAll = Close All \ No newline at end of file +tab.closeAll = Close All + +about.version = Version +about.ok = OK \ No newline at end of file diff --git a/src/main/resources/language_de.properties b/src/main/resources/language_de.properties index 1e3c444..b524909 100644 --- a/src/main/resources/language_de.properties +++ b/src/main/resources/language_de.properties @@ -24,4 +24,7 @@ help.about = Informationen tab.close = Schließen tab.closeOthers = Andere schließen -tab.closeAll = Alle schließen \ No newline at end of file +tab.closeAll = Alle schließen + +about.version = Version +about.ok = OK \ No newline at end of file