diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ProfileOrganizerRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/ProfileOrganizerRenderer.java index d90f813409..cc671e6145 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/ProfileOrganizerRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/ProfileOrganizerRenderer.java @@ -60,20 +60,20 @@ class ProfileOrganizerRenderer { int integrated = 0; int failing = 0; StringBuilder buf = new StringBuilder(16*1024); - buf.append("
"); + buf.append("
"); buf.append(_("Showing {0} recent profiles.", order.size())).append('\n'); buf.append(_("Hiding {0} older profiles.", peers.size()-order.size())); - buf.append("
" + - "").append(_("Peer")).append(" | " + - "").append(_("Groups (Caps)")).append(" | " + - "").append(_("Speed")).append(" | " + - "").append(_("Capacity")).append(" | " + - "").append(_("Integration")).append(" | " + - "").append(_("Status")).append(" | " + - "" + - " |
---|
").append(_("Peer")).append(" | "); + buf.append("").append(_("Groups (Caps)")).append(" | "); + buf.append("").append(_("Speed")).append(" | "); + buf.append("").append(_("Capacity")).append(" | "); + buf.append("").append(_("Integration")).append(" | "); + buf.append("").append(_("Status")).append(" | "); + buf.append(""); + buf.append(" | "); switch (tier) { - case 1: buf.append("Fast, High Capacity"); break; - case 2: buf.append("High Capacity"); break; - case 3: buf.append("Not Failing"); break; - default: buf.append("Failing"); break; + case 1: buf.append(_("Fast, High Capacity")); break; + case 2: buf.append(_("High Capacity")); break; + case 3: buf.append(_("Not Failing")); break; + default: buf.append(_("Failing")); break; } - if (isIntegrated) buf.append(", Integrated"); + if (isIntegrated) buf.append(", ").append(_("Integrated")); RouterInfo info = _context.netDb().lookupRouterInfoLocally(peer); if (info != null) { // prevent HTML injection in the caps and version @@ -144,16 +144,16 @@ class ProfileOrganizerRenderer { } buf.append(" | ").append(num(prof.getIntegrationValue())); buf.append(" | "); - if (_context.shitlist().isShitlisted(peer)) buf.append("Banned"); - if (prof.getIsFailing()) buf.append(" Failing"); - if (_context.commSystem().wasUnreachable(peer)) buf.append(" Unreachable"); + if (_context.shitlist().isShitlisted(peer)) buf.append(_("Banned")); + if (prof.getIsFailing()) buf.append(" ").append(_("Failing")); + if (_context.commSystem().wasUnreachable(peer)) buf.append(" ").append(_("Unreachable")); Rate failed = prof.getTunnelHistory().getFailedRate().getRate(30*60*1000); long fails = failed.getCurrentEventCount() + failed.getLastEventCount(); if (fails > 0) { Rate accepted = prof.getTunnelCreateResponseTime().getRate(30*60*1000); long total = fails + accepted.getCurrentEventCount() + accepted.getLastEventCount(); if (total / fails <= 10) // hide if < 10% - buf.append(' ').append(fails).append('/').append(total).append(" Test Fails"); + buf.append(' ').append(fails).append('/').append(total).append(" ").append(_("Test Fails")); } buf.append(" | "); buf.append("profile"); @@ -165,30 +165,30 @@ class ProfileOrganizerRenderer { } buf.append(" |
---|
Peer | " + - "Caps | " + - "Integ. Value | " + - "Last Heard About | " + - "Last Heard From | " + + buf.append("
---|
Peer | "); + buf.append("Caps | "); + buf.append("Integ. Value | "); + buf.append("Last Heard About | "); + buf.append("Last Heard From | "); // "Last Successful Send | " + - "Last Good Send | " + + buf.append("Last Good Send | "); // "Last Failed Send | " + - "Last Bad Send | " + - "10m Resp. Time | " + - "1h Resp. Time | " + - "1d Resp. Time | " + + buf.append("Last Bad Send | "); + buf.append("10m Resp. Time | "); + buf.append("1h Resp. Time | "); + buf.append("1d Resp. Time | "); // "Successful Lookups | " + - "Good Lookups | " + + buf.append("Good Lookups | "); // "Failed Lookups | " + - "Bad Lookups | " + - "New Stores | " + - "Old Stores | " + - "1h Fail Rate | " + - "1d Fail Rate | " + - "Bad Lookups | "); + buf.append("New Stores | "); + buf.append("Old Stores | "); + buf.append("1h Fail Rate | "); + buf.append("1d Fail Rate | "); + buf.append(""); for (Iterator iter = integratedPeers.iterator(); iter.hasNext();) { PeerProfile prof = (PeerProfile)iter.next(); Hash peer = prof.getPeer(); @@ -227,18 +227,18 @@ class ProfileOrganizerRenderer { } buf.append("
---|
Speed: ").append(num(_organizer.getSpeedThreshold())).append(" (").append(fast).append(" fast peers)
");
- buf.append("Capacity: ").append(num(_organizer.getCapacityThreshold())).append(" (").append(reliable).append(" high capacity peers)
");
- buf.append("Integration: ").append(num(_organizer.getIntegrationThreshold())).append(" (").append(integrated).append(" well integrated peers)
").append(_("Speed")).append(": ").append(num(_organizer.getSpeedThreshold())).append(" (").append(fast).append(" fast peers)
");
+ buf.append("").append(_("Capacity")).append(": ").append(num(_organizer.getCapacityThreshold())).append(" (").append(reliable).append(" high capacity peers)
");
+ buf.append("").append(_("Integration")).append(": ").append(num(_organizer.getIntegrationThreshold())).append(" (").append(integrated).append(" well integrated peers)