diff --git a/Ratty/res/language/lang.properties b/Ratty/res/language/lang.properties index be53879..0725697 100644 --- a/Ratty/res/language/lang.properties +++ b/Ratty/res/language/lang.properties @@ -4,6 +4,9 @@ debug.client=Client server.port_message=Which port should the server be bind to? +builder.address_question=Which address should the client connect to? +builder.port_question=Which port? + action.popup=Open popup action.screenshot=Take screensot action.desktop=Toggle desktop stream diff --git a/Ratty/res/language/lang_de.properties b/Ratty/res/language/lang_de.properties index 8074775..b390622 100644 --- a/Ratty/res/language/lang_de.properties +++ b/Ratty/res/language/lang_de.properties @@ -4,6 +4,9 @@ debug.client=Client server.port_message=An welchen Port soll der Server gebunden werden? +builder.address_question=Mit welcher Adresse soll sich der Client verbinden? +builder.port_question=Welcher Port? + action.popup=Popup öffnen action.screenshot=Screenshot machen action.desktop=Desktopstream an/aus diff --git a/Ratty/res/language/lang_en.properties b/Ratty/res/language/lang_en.properties index be53879..0725697 100644 --- a/Ratty/res/language/lang_en.properties +++ b/Ratty/res/language/lang_en.properties @@ -4,6 +4,9 @@ debug.client=Client server.port_message=Which port should the server be bind to? +builder.address_question=Which address should the client connect to? +builder.port_question=Which port? + action.popup=Open popup action.screenshot=Take screensot action.desktop=Toggle desktop stream diff --git a/Ratty/src/de/sogomn/rat/builder/StubBuilder.java b/Ratty/src/de/sogomn/rat/builder/StubBuilder.java index 21132fb..1a42e3b 100644 --- a/Ratty/src/de/sogomn/rat/builder/StubBuilder.java +++ b/Ratty/src/de/sogomn/rat/builder/StubBuilder.java @@ -1,5 +1,7 @@ package de.sogomn.rat.builder; +import static de.sogomn.rat.Ratty.LANGUAGE; + import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; @@ -25,8 +27,8 @@ import de.sogomn.rat.Ratty; */ public final class StubBuilder { - private static final String ADDRESS_MESSAGE = "Which address should the client connect to?"; - private static final String PORT_MESSAGE = "Which port?"; + private static final String ADDRESS_MESSAGE = LANGUAGE.getString("builder.address_question"); + private static final String PORT_MESSAGE = LANGUAGE.getString("builder.port_question"); private static final String FILE_EXTENSION = ".jar"; private static final String FILE_NAME = "/connection_data.txt";