Console: Clean up help text, tag for translation (ticket #2298)

This commit is contained in:
zzz
2019-08-14 19:52:54 +00:00
parent 21ace66a46
commit 131a70057e
13 changed files with 149 additions and 187 deletions

View File

@ -107,6 +107,9 @@ class NetDbRenderer {
StringBuilder buf = new StringBuilder(4*1024);
List<Hash> sybils = sybil != null ? new ArrayList<Hash>(128) : null;
if (".".equals(routerPrefix)) {
buf.append("<table><tr><td class=\"infohelp\">")
.append(_t("Never reveal your router identity to anyone, as it is uniquely linked to your IP address in the network database."))
.append("</td></tr></table>");
renderRouterInfo(buf, _context.router().getRouterInfo(), true, true);
} else {
StringBuilder ubuf = new StringBuilder();

View File

@ -76,7 +76,7 @@ class TunnelRenderer {
dname = DataHelper.escapeHTML(_t(name));
}
out.write("<h3 class=\"tabletitle\" id=\"" + b64
+ "\" >" + _t("Client tunnels for") + ' ' + dname);
+ "\" >" + _t("Client tunnels for {0}", dname));
if (isLocal) {
// links are set to float:right in CSS so they will be displayed in reverse order
out.write(" <a href=\"/configtunnels#" + b64 + "\" title=\"" + _t("Configure tunnels for session") + "\">[" + _t("configure") + "]</a>");
@ -97,7 +97,7 @@ class TunnelRenderer {
if (aname == null)
aname = ab64;
out.write("<h3 class=\"tabletitle\" id=\"" + ab64
+ "\" >" + _t("Client tunnels for") + ' ' + DataHelper.escapeHTML(_t(aname)));
+ "\" >" + _t("Client tunnels for {0}", DataHelper.escapeHTML(_t(aname))));
if (isLocal)
out.write(" <a href=\"/configtunnels#" + b64 + "\" title=\"" + _t("Configure tunnels for session") + "\">[" + _t("configure") + "]</a></h3>\n");
else