= Localized beans, help, help builder, info, invite
help builder localization currently will collapse for header titles. This isn't too big of a deal, but the word for 'commands' at least can be localized.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
|
||||
public class CommandGiveBeans extends Command
|
||||
@@ -8,7 +9,7 @@ public class CommandGiveBeans extends Command
|
||||
public CommandGiveBeans (KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@Override
|
||||
public String HelpText() { return "Gives beans to the mentioned users!"; }
|
||||
public String HelpText() { return Localizer.Stub("Gives beans to the mentioned users!"); }
|
||||
|
||||
@Override
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
@@ -19,20 +20,20 @@ public class CommandGiveBeans extends Command
|
||||
}
|
||||
catch (NumberFormatException e)
|
||||
{
|
||||
res.Call("That's not a valid number!");
|
||||
res.Call(Localizer.Stub("That's not a valid number!"));
|
||||
return;
|
||||
}
|
||||
|
||||
if(input.mentions == null)
|
||||
{
|
||||
res.Call("You didn't mention anyone!");
|
||||
res.Call(Localizer.Stub("You didn't mention anyone!"));
|
||||
return;
|
||||
}
|
||||
|
||||
for(int i = 0; i < input.mentions.length; i++)
|
||||
{
|
||||
input.mentions[i].ChangeBeans(beans);
|
||||
res.Call("Gave " + input.mentions[i].name + " " + beans + " beans!");
|
||||
res.Call(String.format(Localizer.Stub("Gave %s %s beans!"), input.mentions[i].name, "" + beans));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user