diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java index 6327033c9..279f4e550 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java @@ -45,6 +45,27 @@ public class SummaryBarRenderer { {"HelpAndFAQ", "I2PServices", "I2PInternals", "General", "ShortGeneral", "NetworkReachability", "UpdateStatus", "RestartStatus", "Peers", "FirewallAndReseedStatus", "Bandwidth", "Tunnels", "Congestion", "TunnelStatus", "Destinations", "NewsHeadings" }; + static final Map SECTION_NAMES; + static { + Map aMap = new HashMap();; + aMap.put("HelpAndFAQ", "Help & FAQ"); + aMap.put("I2PServices", "I2P Services"); + aMap.put("I2PInternals", "I2P Internals"); + aMap.put("General", "General"); + aMap.put("ShortGeneral", "Short General"); + aMap.put("NetworkReachability", "Network Reachability"); + aMap.put("UpdateStatus", "Update Status"); + aMap.put("RestartStatus", "Restart Status"); + aMap.put("Peers", "Peers"); + aMap.put("FirewallAndReseedStatus", "Firewall & Reseed Status"); + aMap.put("Bandwidth", "Bandwidth"); + aMap.put("Tunnels", "Tunnels"); + aMap.put("Congestion", "Congestion"); + aMap.put("TunnelStatus", "Tunnel Status"); + aMap.put("Destinations", "Local Destinations"); + aMap.put("NewsHeadings", "News & Updates"); + SECTION_NAMES = Collections.unmodifiableMap(aMap); + } private final RouterContext _context; private final SummaryHelper _helper; @@ -589,7 +610,7 @@ public class SummaryBarRenderer { if (consoleNonce != null) { // Set up title and pre-headings stuff. buf.append("

") - .append(_("News & Updates")) + .append(_("News & Updates")) .append("


\n"); // Get news content. String newsContent = newshelper.getContent(); diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java index b5d796041..942498eb4 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java @@ -790,6 +790,7 @@ public class SummaryHelper extends HelperBase { public String getConfigTable() { String[] allSections = SummaryBarRenderer.ALL_SECTIONS; + Map sectionNames = SummaryBarRenderer.SECTION_NAMES; List sections = getSummaryBarSections("default"); TreeSet sortedSections = new TreeSet(); @@ -815,7 +816,7 @@ public class SummaryHelper extends HelperBase { buf.append("") - .append(section) + .append(_(sectionNames.get(section))) .append("") - .append(s).append("\n"); + .append(sectionNames.get(s)).append("\n"); } buf.append("\n" +