Localize ALL THE THINGS!

This commit is contained in:
CannibalVox 2015-03-10 08:57:08 -05:00
parent 6aeed2c0e5
commit 8073ee6a32
74 changed files with 89 additions and 78 deletions

View file

@ -65,7 +65,6 @@ public class DDProperties
public final boolean TNFREAKINGT_Enabled;
public final boolean MonolithTeleportationEnabled;
public final boolean DangerousLimboMonolithsDisabled;
/**
* Other
@ -82,7 +81,6 @@ public class DDProperties
public final int WorldThreadRequirementLevel;
public final String CustomSchematicDirectory;
//Singleton instance
private static DDProperties instance = null;
//Path for custom dungeons within configuration directory

View file

@ -8,7 +8,7 @@ import StevenDimDoors.mod_pocketDim.mod_pocketDim;
public class ItemBlockDimWall extends ItemBlock
{
private final static String[] subNames = {"Fabric of Reality", "Ancient Fabric" , "Altered Fabric"};
private final static String[] subNames = {"tile.blockDimWall", "tile.blockAncientWall" , "tile.blockAlteredWall"};
public ItemBlockDimWall(Block block)
{

View file

@ -45,11 +45,11 @@ public class ItemDDKey extends Item
{
if (DDLock.hasCreatedLock(par1ItemStack))
{
par3List.add("Bound");
par3List.add(StatCollector.translateToLocal("info.riftkey.bound"));
}
else
{
par3List.add("Unbound");
par3List.add(StatCollector.translateToLocal("info.riftkey.unbound"));
}
}

View file

@ -21,10 +21,7 @@ public class ItemDimensionalDoor extends BaseItemDoor
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Place on the block under a rift");
par3List.add("to activate that rift or place");
par3List.add("anywhere else to create a");
par3List.add("pocket dimension.");
mod_pocketDim.translateAndAdd("info.dimDoor",par3List);
}
@Override

View file

@ -22,9 +22,7 @@ public class ItemGoldDimDoor extends BaseItemDoor
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Similar to a Dimensional Door");
par3List.add("but keeps a pocket dimension");
par3List.add("loaded if placed on the inside.");
mod_pocketDim.translateAndAdd("info.goldDimDoor", par3List);
}
@Override

View file

@ -21,10 +21,7 @@ public class ItemPersonalDoor extends BaseItemDoor
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Creates a pathway to");
par3List.add("Your personal pocket");
mod_pocketDim.translateAndAdd("info.personalDimDoor", par3List);
}
@Override

View file

@ -184,7 +184,6 @@ public class ItemRiftBlade extends ItemSword
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Opens temporary doors on rifts");
par3List.add("and has a teleport attack.");
mod_pocketDim.translateAndAdd("info.riftblade", par3List);
}
}

View file

@ -8,6 +8,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
@ -118,13 +119,11 @@ public class ItemRiftSignature extends Item
Point4DOrientation source = getSource(par1ItemStack);
if (source != null)
{
par3List.add("Leads to (" + source.getX() + ", " + source.getY() + ", " + source.getZ() + ") at dimension #" + source.getDimension());
par3List.add(StatCollector.translateToLocalFormatted("info.riftSignature.bound", source.getX(), source.getY(), source.getZ(), source.getDimension()));
}
else
{
par3List.add("First click stores a location;");
par3List.add("second click creates a pair of");
par3List.add("rifts linking the two locations.");
mod_pocketDim.translateAndAdd("info.riftSignature.unbound", par3List);
}
}

View file

@ -8,6 +8,7 @@ import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
@ -169,13 +170,12 @@ public class ItemStabilizedRiftSignature extends ItemRiftSignature
Point4DOrientation source = getSource(par1ItemStack);
if (source != null)
{
par3List.add("Leads to (" + source.getX() + ", " + source.getY() + ", " + source.getZ() + ") at dimension #" + source.getDimension());
String text = StatCollector.translateToLocalFormatted("info.riftSignature.bound", source.getX(), source.getY(), source.getZ(), source.getDimension());
par3List.add(text);
}
else
{
par3List.add("First click stores a location,");
par3List.add("other clicks create rifts linking");
par3List.add("the first and last locations together.");
mod_pocketDim.translateAndAdd("info.riftSignature.stable", par3List);
}
}
}

View file

@ -6,6 +6,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemDoor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
import StevenDimDoors.mod_pocketDim.blocks.BaseDimDoor;
@ -21,7 +22,7 @@ public class ItemUnstableDoor extends BaseItemDoor
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Caution: Leads to random destination");
par3List.add(StatCollector.translateToLocal("info.chaosDoor"));
}
@Override

View file

@ -21,10 +21,7 @@ public class ItemWarpDoor extends BaseItemDoor
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Place on the block under");
par3List.add("a rift to create a portal,");
par3List.add("or place anywhere in a");
par3List.add("pocket dimension to exit.");
mod_pocketDim.translateAndAdd("info.warpDoor",par3List);
}
@Override

View file

@ -130,8 +130,6 @@ public class itemRiftRemover extends Item
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Use near exposed rift");
par3List.add("to remove it and");
par3List.add("any nearby rifts.");
mod_pocketDim.translateAndAdd("info.riftRemover",par3List);
}
}

View file

@ -1,6 +1,7 @@
package StevenDimDoors.mod_pocketDim;
import java.io.File;
import java.util.List;
import StevenDimDoors.mod_pocketDim.schematic.BlockRotator;
import cpw.mods.fml.common.FMLCommonHandler;
@ -14,6 +15,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemDoor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.StatCollector;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.ForgeChunkManager;
@ -161,12 +163,6 @@ public class mod_pocketDim
{
return mod_pocketDim.itemDimensionalDoor;
}
@Override
public String getTranslatedTabLabel()
{
return "Dimensional Doors";
}
};
@EventHandler
@ -272,43 +268,6 @@ public class mod_pocketDim
throw new IllegalStateException("There is a provider ID conflict between PersonalPocketProvider from Dimensional Doors and another provider type. Fix your configuration!");
DimensionManager.registerDimension(properties.LimboDimensionID, properties.LimboProviderID);
LanguageRegistry.addName(goldenDoor, "Golden Door");
LanguageRegistry.addName(goldenDimensionalDoor, "Golden Dimensional Door");
LanguageRegistry.addName(transientDoor , "Transient Door");
LanguageRegistry.addName(blockRift , "Rift");
LanguageRegistry.addName(blockLimbo , "Unraveled Fabric");
LanguageRegistry.addName(warpDoor , "Warp Door");
LanguageRegistry.addName(unstableDoor , "Unstable Door");
LanguageRegistry.addName(blockDimWall , "Fabric of Reality");
LanguageRegistry.addName(blockDimWallPerm , "Eternal Fabric");
LanguageRegistry.addName(dimensionalDoor, "Dimensional Door");
LanguageRegistry.addName(transTrapdoor, "Transdimensional Trapdoor");
LanguageRegistry.addName(itemWarpDoor, "Warp Door");
LanguageRegistry.addName(itemRiftSignature, "Rift Signature");
LanguageRegistry.addName(itemGoldenDoor, "Golden Door");
LanguageRegistry.addName(itemGoldenDimensionalDoor, "Golden Dimensional Door");
LanguageRegistry.addName(itemStabilizedRiftSignature, "Stabilized Rift Signature");
LanguageRegistry.addName(itemRiftRemover, "Rift Remover");
LanguageRegistry.addName(itemStableFabric, "Stable Fabric");
LanguageRegistry.addName(itemUnstableDoor, "Unstable Door");
LanguageRegistry.addName(itemDimensionalDoor, "Dimensional Door");
LanguageRegistry.addName(itemRiftBlade, "Rift Blade");
LanguageRegistry.addName(itemWorldThread, "World Thread");
LanguageRegistry.addName(itemDDKey, "Rift Key");
LanguageRegistry.addName(itemQuartzDoor, "Quartz Door");
LanguageRegistry.addName(itemPersonalDoor, "Personal Dimensional Door");
/**
* Add names for multiblock inventory item
*/
LanguageRegistry.addName(new ItemStack(blockDimWall, 1, 0), "Fabric of Reality");
LanguageRegistry.addName(new ItemStack(blockDimWall, 1, 1), "Ancient Fabric");
LanguageRegistry.addName(new ItemStack(blockDimWall, 1, 2), "Altered Fabric");
LanguageRegistry.instance().addStringLocalization("itemGroup.dimDoorsCustomTab", "en_US", "Dimensional Doors Items");
GameRegistry.registerTileEntity(TileEntityDimDoor.class, "TileEntityDimDoor");
GameRegistry.registerTileEntity(TileEntityRift.class, "TileEntityRift");
@ -318,7 +277,6 @@ public class mod_pocketDim
EntityRegistry.registerModEntity(MobMonolith.class, "Monolith", properties.MonolithEntityID, this, 70, 1, true);
EntityList.IDtoClassMapping.put(properties.MonolithEntityID, MobMonolith.class);
EntityList.entityEggs.put(properties.MonolithEntityID, new EntityList.EntityEggInfo(properties.MonolithEntityID, 0, 0xffffff));
LanguageRegistry.instance().addStringLocalization("entity.dimdoors.Monolith.name", "Monolith");
CraftingManager.registerRecipes(properties);
CraftingManager.registerDispenserBehaviors();
@ -334,6 +292,16 @@ public class mod_pocketDim
proxy.registerRenderers();
}
public static void translateAndAdd(String key, List list) {
for (int i=0;i<10;i++) {
if (StatCollector.canTranslate(key+Integer.toString(i))) {
String line = StatCollector.translateToLocal(key + Integer.toString(i));
list.add(line);
} else
break;
}
}
@EventHandler
public void onPostInitialization(FMLPostInitializationEvent event)
{

View file

@ -0,0 +1,59 @@
itemGroup.dimDoorsCreativeTab=Dimensional Doors Items
tile.doorGold.name=Golden Door
tile.transientDoor.name=Transient Door
tile.dimDoorGold.name=Golden Dimensional Door
tile.quartzDoor.name=Quartz Door
tile.dimDoorPersonal.name=Personal Dimensional Door
tile.blockDimWall.name=Fabric of Reality
tile.blockAlteredWall.name=Altered Fabric
tile.blockAncientWall.name=Ancient Fabric
tile.blockDimWallPerm.name=Eternal Fabric
tile.dimDoorWarp.name=Warp Door
tile.rift.name=Rift
tile.BlockLimbo.name=Unraveled Fabric
tile.chaosDoor.name=Unstable Door
tile.dimDoor.name=Dimensional Door
tile.dimHatch.name=Transdimensional Trapdoor
item.itemGoldDoor.name=Golden Door
item.itemDDKey=Rift Key
item.itemQuartzDoor.name=Quartz Door
item.itemQuartzDimDoor.name=Personal Dimensional Door
item.itemGoldDimDoor.name=Golden Dimensional Door
item.itemDimDoor.name=Dimensional Door
item.itemDimDoorWarp.name=Warp Door
item.itemLinkSignature.name=Rift Signature
item.itemStabilizedRiftSig.name=Stabilized Rift Signature
item.itemRiftRemover.name=Rift Remover
item.itemStableFabric.name=Stable Fabric
item.itemChaosDoor.name=Unstable Door
item.ItemRiftBlade.name=Rift Blade
item.itemWorldThread.name=World Thread
info.riftkey.bound=Bound
info.riftkey.unbound=Unbound
info.dimDoor0=Place on the block under a rift
info.dimDoor1=to activate that rift or place
info.dimDoor2=anywhere else to create a
info.dimDoor3=pocket dimension.
info.goldDimDoor0=Similar to a Dimensional Door
info.goldDimDoor1=but keeps a pocket dimension
info.goldDimDoor2=loaded if placed on the inside.
info.personalDimDoor0=Creates a pathway to
info.personalDimDoor1=your personal pocket
info.riftblade0=Opens temporary doors on rifts
info.riftblade1=and has a teleport attack.
info.riftRemover0=Use near exposed rift
info.riftRemover1=to remove it and
info.riftRemover2=any nearby rifts.
info.riftSignature.bound=Leads to (%d, %d, %d) at dimension #%d
info.riftSignature.unbound0=First click stores a location;
info.riftSignature.unbound1=second click creates a pair of
info.riftSignature.unbound2=rifts linking the two locations.
info.riftSignature.stable0=First click stores a location,
info.riftSignature.stable1=other clicks create rifts linking
info.riftSignature.stable2=the first and last locations together.
info.chaosDoor=Caution: Leads to random destination
info.warpDoor0=Place on the block under
info.warpDoor1=a rift to create a portal,
info.warpDoor2=or place anywhere in a
info.warpDoor3=pocket dimension to exit.
entity.dimdoors.Monolith.name=Monolith

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB