diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java | 1 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgive.java | 6 | ||||
-rw-r--r-- | Essentials/src/messages.properties | 3 | ||||
-rw-r--r-- | Essentials/src/messages_cs.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_da.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_de.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_en.properties | 3 | ||||
-rw-r--r-- | Essentials/src/messages_es.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_fi.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_fr.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_it.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_nl.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_pl.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_pt.properties | 1 | ||||
-rw-r--r-- | Essentials/src/messages_se.properties | 1 |
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. |