[1.7.10] Added some localization (#86)

* Added some localization
us_GB lang files cleanup

* Fix compile errors

* Some refactoring

* Added some localization
Some refactoring
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-06-02 22:50:03 -07:00
1 parent 0c15ee9943
commit 2f683650c0
125 files changed
+962 -2572

No files matched your search

+12 -12
View File
@@ -9,14 +9,14 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class Mods {
public static Mod Forestry;
public static Mod IC2;
public static Mod Botania;
private static boolean WARN;
public static Mod forestry;
public static Mod ic2;
public static Mod botania;
private static boolean warn;
private static Item findItem(String modId, String name) {
Item stack = GameRegistry.findItem(modId, name);
if (stack == null && Mods.WARN && modId.equals("Forestry")) {
if (stack == null && Mods.warn && modId.equals("FORESTRY")) {
throw new RuntimeException("Item not found: " + modId + ":" + name);
}
return stack;
@@ -24,7 +24,7 @@ public class Mods {
private static ItemStack findItemStack(String modId, String name, int stackSize) {
ItemStack stack = GameRegistry.findItemStack(modId, name, stackSize);
if (stack == null && Mods.WARN && modId.equals("Forestry")) {
if (stack == null && Mods.warn && modId.equals("FORESTRY")) {
throw new RuntimeException("Stack not found: " + modId + ":" + name);
}
return stack;
@@ -32,24 +32,24 @@ public class Mods {
private static Block findBlock(String modId, String name) {
Block stack = GameRegistry.findBlock(modId, name);
if (stack == null && Mods.WARN && modId.equals("Forestry")) {
if (stack == null && Mods.warn && modId.equals("FORESTRY")) {
throw new RuntimeException("Block not found: " + modId + ":" + name);
}
return stack;
}
static {
Mods.Forestry = new Mod("Forestry") {
Mods.forestry = new Mod("FORESTRY") {
@Override
public boolean dev() {
String forVersion = Loader.instance().getIndexedModList().get("Forestry").getVersion();
String forVersion = Loader.instance().getIndexedModList().get("FORESTRY").getVersion();
Restriction rest = new Restriction(new DefaultArtifactVersion("3.6"), true, null, false);
return rest.containsVersion(new DefaultArtifactVersion(forVersion));
}
};
Mods.IC2 = new Mod("IC2");
Mods.Botania = new Mod("Botania");
Mods.WARN = true;
Mods.ic2 = new Mod("IC2");
Mods.botania = new Mod("BOTANIA");
Mods.warn = true;
}
public static class Mod {