summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-09-09 17:10:26 +0100
committerKHobbits <rob@khobbits.co.uk>2012-09-09 17:10:26 +0100
commit3691417848d0ffe2d50efb3c7971bd9cec06fe3a (patch)
tree3091ba23ac5597a8e9c8640d7b592eb93ceaffdd
parent029162bba7cac9463016e08e5df7f60c7712b58b (diff)
downloadEssentials-3691417848d0ffe2d50efb3c7971bd9cec06fe3a.tar
Essentials-3691417848d0ffe2d50efb3c7971bd9cec06fe3a.tar.gz
Essentials-3691417848d0ffe2d50efb3c7971bd9cec06fe3a.tar.lz
Essentials-3691417848d0ffe2d50efb3c7971bd9cec06fe3a.tar.xz
Essentials-3691417848d0ffe2d50efb3c7971bd9cec06fe3a.zip
Fix Missing TL key
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java1
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandgive.java6
-rw-r--r--Essentials/src/messages.properties3
-rw-r--r--Essentials/src/messages_cs.properties1
-rw-r--r--Essentials/src/messages_da.properties1
-rw-r--r--Essentials/src/messages_de.properties1
-rw-r--r--Essentials/src/messages_en.properties3
-rw-r--r--Essentials/src/messages_es.properties1
-rw-r--r--Essentials/src/messages_fi.properties1
-rw-r--r--Essentials/src/messages_fr.properties1
-rw-r--r--Essentials/src/messages_it.properties1
-rw-r--r--Essentials/src/messages_nl.properties1
-rw-r--r--Essentials/src/messages_pl.properties1
-rw-r--r--Essentials/src/messages_pt.properties1
-rw-r--r--Essentials/src/messages_se.properties1
15 files changed, 17 insertions, 7 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java b/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java
index 03128eed0..c5d32f512 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java
@@ -41,7 +41,6 @@ public class Commandgetpos extends EssentialsCommand
outputPosition(sender, user.getLocation(), null);
}
- //TODO: Translate
private void outputPosition(final CommandSender sender, final Location coords, final Location distance)
{
sender.sendMessage(_("currentWorld", coords.getWorld().getName()));
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java
index c03141352..c5c1a0b6b 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandgive.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandgive.java
@@ -5,7 +5,6 @@ import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
import com.earth2me.essentials.craftbukkit.InventoryWorkaround;
import java.util.Locale;
-import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
@@ -46,7 +45,7 @@ public class Commandgive extends EssentialsCommand
final User giveTo = getPlayer(server, args, 0);
if (args.length > 3 && Util.isInt(args[2]) && Util.isInt(args[3]))
- {
+ {
stack.setAmount(Integer.parseInt(args[2]));
stack.setDurability(Short.parseShort(args[3]));
}
@@ -91,9 +90,8 @@ public class Commandgive extends EssentialsCommand
throw new Exception(_("cantSpawnItem", "Air"));
}
- //TODO: TL this.
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"))
{
InventoryWorkaround.addItem(giveTo.getInventory(), true, ess.getSettings().getOversizedStackSize(), stack);
diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties
index 91c902307..b2d0846f2 100644
--- a/Essentials/src/messages.properties
+++ b/Essentials/src/messages.properties
@@ -142,7 +142,7 @@ illegalDate=Illegal date format.
infoChapter=Select chapter:
infoChapterPages=\u00a76Chapter {0}, page \u00a7c{1}\u00a76 of \u00a7c{2}\u00a76:
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.
invBigger=\u00a74The other users inventory is bigger than yours.
invRestored=\u00a76Your inventory has been restored.
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_cs.properties b/Essentials/src/messages_cs.properties
index ef857ca4b..476dc56d7 100644
--- a/Essentials/src/messages_cs.properties
+++ b/Essentials/src/messages_cs.properties
@@ -456,3 +456,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_da.properties b/Essentials/src/messages_da.properties
index f867ce8a6..d5b910f3e 100644
--- a/Essentials/src/messages_da.properties
+++ b/Essentials/src/messages_da.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_de.properties b/Essentials/src/messages_de.properties
index ffec7d34f..54a94d7a8 100644
--- a/Essentials/src/messages_de.properties
+++ b/Essentials/src/messages_de.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties
index 91c902307..b2d0846f2 100644
--- a/Essentials/src/messages_en.properties
+++ b/Essentials/src/messages_en.properties
@@ -142,7 +142,7 @@ illegalDate=Illegal date format.
infoChapter=Select chapter:
infoChapterPages=\u00a76Chapter {0}, page \u00a7c{1}\u00a76 of \u00a7c{2}\u00a76:
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.
invBigger=\u00a74The other users inventory is bigger than yours.
invRestored=\u00a76Your inventory has been restored.
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_es.properties b/Essentials/src/messages_es.properties
index cab8dc548..a239de275 100644
--- a/Essentials/src/messages_es.properties
+++ b/Essentials/src/messages_es.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_fi.properties b/Essentials/src/messages_fi.properties
index ed523607c..a10f6cd95 100644
--- a/Essentials/src/messages_fi.properties
+++ b/Essentials/src/messages_fi.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_fr.properties b/Essentials/src/messages_fr.properties
index 3432f9723..2cda48426 100644
--- a/Essentials/src/messages_fr.properties
+++ b/Essentials/src/messages_fr.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_it.properties b/Essentials/src/messages_it.properties
index d725ddcc9..cf00a1014 100644
--- a/Essentials/src/messages_it.properties
+++ b/Essentials/src/messages_it.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_nl.properties b/Essentials/src/messages_nl.properties
index 8ddee5f4c..387a2ee2e 100644
--- a/Essentials/src/messages_nl.properties
+++ b/Essentials/src/messages_nl.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_pl.properties b/Essentials/src/messages_pl.properties
index 44b6a6bdf..e7d857b25 100644
--- a/Essentials/src/messages_pl.properties
+++ b/Essentials/src/messages_pl.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_pt.properties b/Essentials/src/messages_pt.properties
index e517942f1..8392aa703 100644
--- a/Essentials/src/messages_pt.properties
+++ b/Essentials/src/messages_pt.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.
diff --git a/Essentials/src/messages_se.properties b/Essentials/src/messages_se.properties
index 82f16eecb..19d177771 100644
--- a/Essentials/src/messages_se.properties
+++ b/Essentials/src/messages_se.properties
@@ -453,3 +453,4 @@ posZ=\u00a76Z: {0} (+South <-> -North)
posYaw=\u00a76Yaw: {0} (Rotation)
posPitch=\u00a76Pitch: {0} (Head angle)
distance=\u00a76Distance: {0}
+giveSpawn=\u00a76Giving\u00a7c {0} \u00a76of\u00a7c {1} to\u00a7c {2}\u00a76.