= 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:
Matthew Cech
2019-04-06 23:02:16 -07:00
parent b04e26cbc6
commit 9ea68605a4
6 changed files with 55 additions and 33 deletions
+3 -2
View File
@@ -7,6 +7,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import core.Command;
import core.Localizer;
import core.Stats;
import dataStructures.KittyChannel;
import dataStructures.KittyGuild;
@@ -25,7 +26,7 @@ public class CommandHelpBuilder extends Command {
}
@Override
public String HelpText() { return "Emit help for all commands as formatted HTML"; }
public String HelpText() { return Localizer.Stub("Emit help for all commands as formatted HTML"); }
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
@@ -95,7 +96,7 @@ public class CommandHelpBuilder extends Command {
roleStr = roleStr.substring(0, 1).toUpperCase() + roleStr.toLowerCase().substring(1);
// Section header
accumulated += headerStart + roleStr + " commands" + headerEnd;
accumulated += headerStart + roleStr + " " + Localizer.Stub("commands") + headerEnd;
accumulated += sectionStart;
// Section content