Fix Missing TL key

This commit is contained in:
KHobbits 2012-09-09 17:10:26 +01:00
parent 029162bba7
commit 3691417848
15 changed files with 17 additions and 7 deletions

View File

@ -41,7 +41,6 @@ public class Commandgetpos extends EssentialsCommand
outputPosition(sender, user.getLocation(), null); outputPosition(sender, user.getLocation(), null);
} }
//TODO: Translate
private void outputPosition(final CommandSender sender, final Location coords, final Location distance) private void outputPosition(final CommandSender sender, final Location coords, final Location distance)
{ {
sender.sendMessage(_("currentWorld", coords.getWorld().getName())); sender.sendMessage(_("currentWorld", coords.getWorld().getName()));

View File

@ -5,7 +5,6 @@ import com.earth2me.essentials.User;
import com.earth2me.essentials.Util; import com.earth2me.essentials.Util;
import com.earth2me.essentials.craftbukkit.InventoryWorkaround; import com.earth2me.essentials.craftbukkit.InventoryWorkaround;
import java.util.Locale; import java.util.Locale;
import org.bukkit.ChatColor;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@ -46,7 +45,7 @@ public class Commandgive extends EssentialsCommand
final User giveTo = getPlayer(server, args, 0); final User giveTo = getPlayer(server, args, 0);
if (args.length > 3 && Util.isInt(args[2]) && Util.isInt(args[3])) if (args.length > 3 && Util.isInt(args[2]) && Util.isInt(args[3]))
{ {
stack.setAmount(Integer.parseInt(args[2])); stack.setAmount(Integer.parseInt(args[2]));
stack.setDurability(Short.parseShort(args[3])); stack.setDurability(Short.parseShort(args[3]));
} }
@ -91,9 +90,8 @@ public class Commandgive extends EssentialsCommand
throw new Exception(_("cantSpawnItem", "Air")); throw new Exception(_("cantSpawnItem", "Air"));
} }
//TODO: TL this.
final String itemName = stack.getType().toString().toLowerCase(Locale.ENGLISH).replace('_', ' '); final String itemName = stack.getType().toString().toLowerCase(Locale.ENGLISH).replace('_', ' ');
sender.sendMessage(ChatColor.BLUE + "Giving " + stack.getAmount() + " of " + itemName + " to " + giveTo.getDisplayName() + "."); sender.sendMessage(_("giveSpawn", stack.getAmount(), itemName, giveTo.getDisplayName()));
if (giveTo.isAuthorized("essentials.oversizedstacks")) if (giveTo.isAuthorized("essentials.oversizedstacks"))
{ {
InventoryWorkaround.addItem(giveTo.getInventory(), true, ess.getSettings().getOversizedStackSize(), stack); InventoryWorkaround.addItem(giveTo.getInventory(), true, ess.getSettings().getOversizedStackSize(), stack);

View File

@ -142,7 +142,7 @@ illegalDate=Illegal date format.
infoChapter=Select chapter: infoChapter=Select chapter:
infoChapterPages=\u00a76Chapter {0}, page \u00a7c{1}\u00a76 of \u00a7c{2}\u00a76: infoChapterPages=\u00a76Chapter {0}, page \u00a7c{1}\u00a76 of \u00a7c{2}\u00a76:
infoFileDoesNotExist=File info.txt does not exist. Creating one for you. infoFileDoesNotExist=File info.txt does not exist. Creating one for you.
infoPages=\u00a76 ---- \u00a76{2} \u00a7e--\u00a76 Page \u00a7c{0}\u00a76/\u00a7c{1} \u00a7e---- infoPages=\u00a7e ---- \u00a76{2} \u00a7e--\u00a76 Page \u00a7c{0}\u00a76/\u00a7c{1} \u00a7e----
infoUnknownChapter=Unknown chapter. infoUnknownChapter=Unknown chapter.
invBigger=\u00a74The other users inventory is bigger than yours. invBigger=\u00a74The other users inventory is bigger than yours.
invRestored=\u00a76Your inventory has been restored. invRestored=\u00a76Your inventory has been restored.
@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -456,3 +456,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -142,7 +142,7 @@ illegalDate=Illegal date format.
infoChapter=Select chapter: infoChapter=Select chapter:
infoChapterPages=\u00a76Chapter {0}, page \u00a7c{1}\u00a76 of \u00a7c{2}\u00a76: infoChapterPages=\u00a76Chapter {0}, page \u00a7c{1}\u00a76 of \u00a7c{2}\u00a76:
infoFileDoesNotExist=File info.txt does not exist. Creating one for you. infoFileDoesNotExist=File info.txt does not exist. Creating one for you.
infoPages=\u00a76 ---- \u00a76{2} \u00a7e--\u00a76 Page \u00a7c{0}\u00a76/\u00a7c{1} \u00a7e---- infoPages=\u00a7e ---- \u00a76{2} \u00a7e--\u00a76 Page \u00a7c{0}\u00a76/\u00a7c{1} \u00a7e----
infoUnknownChapter=Unknown chapter. infoUnknownChapter=Unknown chapter.
invBigger=\u00a74The other users inventory is bigger than yours. invBigger=\u00a74The other users inventory is bigger than yours.
invRestored=\u00a76Your inventory has been restored. invRestored=\u00a76Your inventory has been restored.
@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.

View File

@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation) posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle) posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0} distance=\u00a76Distance: {0}
giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.