Skip to content

Commit

Permalink
Add mailFormat TL key.
Browse files Browse the repository at this point in the history
  • Loading branch information
khobbits committed Aug 11, 2014
1 parent a24530b commit f4e6f01
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Essentials/src/com/earth2me/essentials/commands/Commandmail.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void run(final Server server, final User user, final String commandLabel,
throw new Exception(tl("playerNeverOnServer", args[1]));
}

final String mail = user.getName() + ": " + StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2)));
final String mail = tl("mailFormat", user.getName(), StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2))));
if (mail.length() > 1000)
{
throw new Exception(tl("mailTooLong"));
Expand Down Expand Up @@ -90,7 +90,7 @@ public void run(final Server server, final User user, final String commandLabel,
{
throw new Exception(tl("noPerm", "essentials.mail.sendall"));
}
ess.runTaskAsynchronously(new SendAll(user.getName() + ": " + FormatUtil.stripFormat(getFinalArg(args, 1))));
ess.runTaskAsynchronously(new SendAll(tl("mailFormat", user.getName(), FormatUtil.stripFormat(getFinalArg(args, 1)))));
user.sendMessage(tl("mailSent"));
return;
}
Expand Down Expand Up @@ -121,13 +121,13 @@ else if (args.length >= 3 && "send".equalsIgnoreCase(args[0]))
{
throw new Exception(tl("playerNeverOnServer", args[1]));
}
u.addMail("Server: " + getFinalArg(args, 2));
u.addMail(tl("mailFormat", "Server", getFinalArg(args, 2)));
sender.sendMessage(tl("mailSent"));
return;
}
else if (args.length >= 2 && "sendall".equalsIgnoreCase(args[0]))
{
ess.runTaskAsynchronously(new SendAll("Server: " + getFinalArg(args, 1)));
ess.runTaskAsynchronously(new SendAll(tl("mailFormat", "Server", getFinalArg(args, 1))));
sender.sendMessage(tl("mailSent"));
return;
}
Expand All @@ -139,7 +139,7 @@ else if (args.length >= 2)
{
throw new Exception(tl("playerNeverOnServer", args[0]));
}
u.addMail("Server: " + getFinalArg(args, 1));
u.addMail(tl("mailFormat", "Server", getFinalArg(args, 1)));
sender.sendMessage(tl("mailSent"));
return;
}
Expand Down
1 change: 1 addition & 0 deletions Essentials/src/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -554,3 +554,4 @@ mailSentTo=\u00a7c{0}\u00a76 has been sent the following mail\:
mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_cs.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_da.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -554,3 +554,4 @@ mailSentTo=\u00a7c{0}\u00a76 has been sent the following mail\:
mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_et.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_fi.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_hu.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_ko.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_lt.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_nl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_pl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_pt.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_ro.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_sv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_tr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_zh_HK.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
1 change: 1 addition & 0 deletions Essentials/src/messages_zh_TW.properties
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,4 @@ mailMessage={0}

whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}

0 comments on commit f4e6f01

Please sign in to comment.