Minor update

- Added JOE and localization support
This commit is contained in:
Gabriel Tofvesson 2016-11-16 11:17:28 +04:00
parent 2371df5ba9
commit d0d8ade4b6
5 changed files with 20 additions and 0 deletions

11
.idea/libraries/JOE.xml generated Normal file
View File

@ -0,0 +1,11 @@
<component name="libraryTable">
<library name="JOE">
<CLASSES>
<root url="jar://$PROJECT_DIR$/libs/JOE.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$PROJECT_DIR$/libs/JOE.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -17,5 +17,6 @@
</library>
</orderEntry>
<orderEntry type="library" name="libRefTools" level="project" />
<orderEntry type="library" name="JOE" level="project" />
</component>
</module>

BIN
libs/JOE.jar Normal file

Binary file not shown.

View File

@ -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]);

View File

@ -1,2 +1,4 @@
Language: Default
du_label:Launching...
du_updater:Updating...