Wrapping up the localizations... though I'm sure there are probably

still some that got missed.
This commit is contained in:
GJ
2013-01-17 11:02:55 -05:00
parent 49610e372f
commit a9c722de67
11 changed files with 38 additions and 14 deletions

View File

@ -17,7 +17,7 @@ import com.gmail.nossr50.util.Users;
public class InspectCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
String usage = "Proper usage is /inspect <player>"; //TODO: Needs more locale.
String usage = LocaleLoader.getString("Commands.Usage.1", new Object[] {"inspect", "<" + LocaleLoader.getString("Commands.Usage.Player") + ">"});
if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.inspect")) {
return true;

View File

@ -74,7 +74,7 @@ public class XprateCommand implements CommandExecutor {
}
}
else {
sender.sendMessage("The XP RATE was modified to " + Config.getInstance().xpGainMultiplier); //TODO: Locale
sender.sendMessage(LocaleLoader.getString("Commands.xprate.modified", new Object[] {Config.getInstance().xpGainMultiplier}));
}
}
else {

View File

@ -56,7 +56,7 @@ public class McrefreshCommand implements CommandExecutor {
return true;
}
sender.sendMessage("You have refreshed " + playerName + "'s cooldowns!"); //TODO: Use locale
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", new Object[] {playerName}));
break;

View File

@ -47,7 +47,7 @@ public class PtpCommand implements CommandExecutor {
Player target = plugin.getServer().getPlayer(args[0]);
if (player.equals(target)) {
player.sendMessage("You can't teleport to yourself!"); //TODO: Use locale
player.sendMessage(LocaleLoader.getString("Party.Teleport.Self"));
return true;
}