diff --git a/.idea/libraries/JOE.xml b/.idea/libraries/JOE.xml new file mode 100644 index 0000000..148b25d --- /dev/null +++ b/.idea/libraries/JOE.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/TAL.iml b/TAL.iml index f6ccf03..3948b33 100644 --- a/TAL.iml +++ b/TAL.iml @@ -17,5 +17,6 @@ + \ No newline at end of file diff --git a/libs/JOE.jar b/libs/JOE.jar new file mode 100644 index 0000000..4d4c19e Binary files /dev/null and b/libs/JOE.jar differ diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java index 2e1a30a..99f5cdf 100644 --- a/src/Launcher/Main.java +++ b/src/Launcher/Main.java @@ -17,6 +17,7 @@ package Launcher; import Launcher.net.Updater; import com.tofvesson.async.Async; +import com.tofvesson.joe.Localization; import com.tofvesson.reflection.SafeReflection; import javafx.animation.KeyFrame; import javafx.animation.Timeline; @@ -39,10 +40,12 @@ import javafx.util.Duration; import java.io.File; import java.net.URL; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; /* Do not go further. you risk your life. Read guideline above. Anyone reading past this point is no longer under our responsibility. +Beware the crocodiles on line 100! */ public class Main extends Application { @@ -202,6 +205,9 @@ public class Main extends Application { } public static void main(String[] args) throws Exception{ + Localization l = new Localization(new File(Main.class.getResource("/assets/lang").getFile())); // Create a localization with aggressive loading + System.out.println(Arrays.toString(l.getLanguageNames())); + System.out.println("Success: "+l.get("du_label")); Main.args = args; if (args.length > 0) { File f = new File(args[0]); diff --git a/src/assets/lang/default.txt b/src/assets/lang/default.txt index e486751..d84f458 100644 --- a/src/assets/lang/default.txt +++ b/src/assets/lang/default.txt @@ -1,2 +1,4 @@ Language: Default +du_label:Launching... +du_updater:Updating... \ No newline at end of file