Skip to content

Commit

Permalink
Add more translation
Browse files Browse the repository at this point in the history
  • Loading branch information
sotasan committed Jun 25, 2022
1 parent b8c7da0 commit 3e68a40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/dev/shota/decompiler/window/popup/About.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/language.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ help.about = About

tab.close = Close
tab.closeOthers = Close Others
tab.closeAll = Close All
tab.closeAll = Close All

about.version = Version
about.ok = OK
5 changes: 4 additions & 1 deletion src/main/resources/language_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ help.about = Informationen

tab.close = Schließen
tab.closeOthers = Andere schließen
tab.closeAll = Alle schließen
tab.closeAll = Alle schließen

about.version = Version
about.ok = OK

0 comments on commit 3e68a40

Please sign in to comment.