diff --git a/src/main/java/mcjty/theoneprobe/apiimpl/providers/ChestInfoTools.java b/src/main/java/mcjty/theoneprobe/apiimpl/providers/ChestInfoTools.java index 68b88f66..c6ce883b 100644 --- a/src/main/java/mcjty/theoneprobe/apiimpl/providers/ChestInfoTools.java +++ b/src/main/java/mcjty/theoneprobe/apiimpl/providers/ChestInfoTools.java @@ -129,7 +129,7 @@ private static int getChestContents(World world, BlockPos pos, List s } } } catch(RuntimeException e) { - throw new RuntimeException("Getting the contents of a " + world.getBlockState(pos).getBlock().getRegistryName() + " (" + te.getClass().getName() + ")", e); + throw new RuntimeException("{*theoneprobe.probe.get_contents*} " + world.getBlockState(pos).getBlock().getRegistryName() + " (" + te.getClass().getName() + ")", e); } return maxSlots; } diff --git a/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoEntityProvider.java b/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoEntityProvider.java index aac9e1b6..b3310f24 100644 --- a/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoEntityProvider.java +++ b/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoEntityProvider.java @@ -133,7 +133,7 @@ public void addProbeEntityInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlaye if (ownerId != null) { String username = UsernameCache.getLastKnownUsername(ownerId); if (username == null) { - probeInfo.text(WARNING + "Unknown owner"); + probeInfo.text(WARNING + "{*theoneprobe.probe.unknown_owner_indicator*}"); } else { probeInfo.text(LABEL + "{*theoneprobe.probe.owned_by_indicator*} " + INFO + username); } diff --git a/src/main/java/mcjty/theoneprobe/apiimpl/providers/HarvestInfoTools.java b/src/main/java/mcjty/theoneprobe/apiimpl/providers/HarvestInfoTools.java index c4af8ea1..27c384f5 100644 --- a/src/main/java/mcjty/theoneprobe/apiimpl/providers/HarvestInfoTools.java +++ b/src/main/java/mcjty/theoneprobe/apiimpl/providers/HarvestInfoTools.java @@ -53,7 +53,7 @@ static void showHarvestLevel(IProbeInfo probeInfo, IBlockState blockState, Block } else { harvestName = harvestLevels[harvestLevel]; } - probeInfo.text(LABEL + "Tool: " + INFO + harvestTool + " (level " + harvestName + ")"); + probeInfo.text(LABEL + "{*theoneprobe.probe.tool_indicator*} " + INFO + harvestTool + " (level " + harvestName + ")"); } } @@ -66,9 +66,9 @@ static void showCanBeHarvested(IProbeInfo probeInfo, World world, BlockPos pos, boolean harvestable = block.canHarvestBlock(world, pos, player) && world.getBlockState(pos).getBlockHardness(world, pos) >= 0; if (harvestable) { - probeInfo.text(OK + "Harvestable"); + probeInfo.text(OK + "{*theoneprobe.probe.harvestable_indicator*}"); } else { - probeInfo.text(WARNING + "Not harvestable"); + probeInfo.text(WARNING + "{*theoneprobe.probe.not_harvestable_indicator*}"); } } diff --git a/src/main/resources/assets/theoneprobe/lang/en_us.lang b/src/main/resources/assets/theoneprobe/lang/en_us.lang index 6b312718..4d86db1c 100644 --- a/src/main/resources/assets/theoneprobe/lang/en_us.lang +++ b/src/main/resources/assets/theoneprobe/lang/en_us.lang @@ -10,11 +10,16 @@ item.theoneprobe.creativeprobe.name=The Creative Probe theoneprobe.probe.enchanting_power=Enchanting Power: theoneprobe.probe.tnt_fuse=TNT Fuse: +theoneprobe.probe.get_contents=Getting the contents of a +theoneprobe.probe.harvestable_indicator=Harvestable +theoneprobe.probe.not_harvestable_indicator=Not Harvestable theoneprobe.probe.fuel_indicator=Fuel: theoneprobe.probe.time_indicator=Time: +theoneprobe.probe.tool_indicator=Tool: theoneprobe.probe.growing_time_indicator=Growing Time: theoneprobe.probe.health_indicator=Health: theoneprobe.probe.rotation_indicator=Rotation: +theoneprobe.probe.unknown_owner_indicator=Unknown owner theoneprobe.probe.owned_by_indicator=Owned by: theoneprobe.probe.jump_height_indicator=Jump height: theoneprobe.probe.speed_indicator=Speed: