Added German translation thanks to Vexatos!

This commit is contained in:
Calclavia 2013-08-08 10:49:37 -04:00
parent 3a10605112
commit ac0dec12b2
2 changed files with 17 additions and 15 deletions

View file

@ -0,0 +1,14 @@
# German @author Vexatos
itemGroup.resonantinduction=Resonant Induction
## Blocks
tile.resonantinduction\:tesla.name=Teslaspule
tile.resonantinduction\:multimeter.name=Multimeter
tile.resonantinduction\:contractor.name=Elektromagnetischer Kontraktor
tile.resonantinduction\:battery.name=Modulare Batterie
## Items
item.resonantinduction\:quantumEntangler.name=Quantenverschr\u00e4nker
item.resonantinduction\:capacitor.name=Kondensatorenzelle
item.resonantinduction\:linker.name=Elektrostatischer Verbinder

View file

@ -31,6 +31,7 @@ import resonantinduction.wire.EnumWire;
import resonantinduction.wire.ItemBlockWire; import resonantinduction.wire.ItemBlockWire;
import resonantinduction.wire.TileEntityWire; import resonantinduction.wire.TileEntityWire;
import universalelectricity.core.item.IItemElectric; import universalelectricity.core.item.IItemElectric;
import universalelectricity.prefab.TranslationHelper;
import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod;
@ -93,7 +94,7 @@ public class ResonantInduction
public static final String MODEL_DIRECTORY = DIRECTORY + "models/"; public static final String MODEL_DIRECTORY = DIRECTORY + "models/";
public static final String LANGUAGE_DIRECTORY = DIRECTORY + "languages/"; public static final String LANGUAGE_DIRECTORY = DIRECTORY + "languages/";
public static final String[] LANGUAGES = new String[] { "en_US" }; public static final String[] LANGUAGES = new String[] { "en_US", "de_DE" };
/** /**
* Settings * Settings
@ -191,7 +192,7 @@ public class ResonantInduction
@EventHandler @EventHandler
public void init(FMLInitializationEvent evt) public void init(FMLInitializationEvent evt)
{ {
LOGGER.fine("Languages Loaded:" + loadLanguages(LANGUAGE_DIRECTORY, LANGUAGES)); LOGGER.fine("Languages Loaded:" + TranslationHelper.loadLanguages(LANGUAGE_DIRECTORY, LANGUAGES));
metadata.modId = ID; metadata.modId = ID;
metadata.name = NAME; metadata.name = NAME;
@ -243,17 +244,4 @@ public class ResonantInduction
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockWire, 1, EnumWire.SUPERCONDUCTOR.ordinal()), "MMM", 'M', "ingotSuperconductor")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockWire, 1, EnumWire.SUPERCONDUCTOR.ordinal()), "MMM", 'M', "ingotSuperconductor"));
} }
public static int loadLanguages(String languagePath, String[] languageSupported)
{
int loaded = 0;
for (String language : languageSupported)
{
LanguageRegistry.instance().loadLocalization(languagePath + language + ".properties", language, false);
loaded++;
}
return loaded;
}
} }