= Updated initialization of ObjectBuilderFactory to include localizers

This commit is contained in:
Matthew Cech
2019-04-14 00:29:31 -07:00
parent f00160714a
commit 841cc51ed1
6 changed files with 80 additions and 46 deletions
+12
View File
@@ -1,8 +1,12 @@
package core;
import java.util.ArrayList;
import utils.GlobalLog;
import utils.LogFilter;
import dataStructures.Pair;
// Performs the same localization for the strings associated with command names as
// is performed with general strings in the application
public class LocCommands extends LocBase
{
public static final String fileName = "locCommands.config";
@@ -34,4 +38,12 @@ public class LocCommands extends LocBase
{
return instance.GetKey(toStub);
}
// Gets all of the un-translated defaults in the commands list.
public static ArrayList<String> GetUnlocalizedCommands()
{
ArrayList<String> raw = new ArrayList<>();
instance.stringStore.ForEach((pair) -> raw.add((String)((Pair<?, ?>)pair).First ));
return raw;
}
}