* netdb.jsp: Tag transport properties
This commit is contained in:
@ -286,11 +286,11 @@ public class NetDbRenderer {
|
||||
buf.append("<b>").append(DataHelper.stripHTML(style)).append(":</b> ");
|
||||
int cost = addr.getCost();
|
||||
if (!((style.equals("SSU") && cost == 5) || (style.equals("NTCP") && cost == 10)))
|
||||
buf.append('[').append("cost").append('=').append("" + cost).append("] ");
|
||||
buf.append('[').append(_("cost")).append('=').append("" + cost).append("] ");
|
||||
for (Iterator optIter = addr.getOptions().keySet().iterator(); optIter.hasNext(); ) {
|
||||
String name = (String)optIter.next();
|
||||
String val = addr.getOptions().getProperty(name);
|
||||
buf.append('[').append(DataHelper.stripHTML(name)).append('=').append(DataHelper.stripHTML(val)).append("] ");
|
||||
buf.append('[').append(_(DataHelper.stripHTML(name))).append('=').append(DataHelper.stripHTML(val)).append("] ");
|
||||
}
|
||||
}
|
||||
buf.append("</td></tr>\n");
|
||||
|
@ -71,5 +71,30 @@ class Dummy {
|
||||
_("Transport");
|
||||
_("Tunnels");
|
||||
_("udp");
|
||||
|
||||
// parameters in transport addresses (netdb.jsp)
|
||||
// may or may not be worth translating
|
||||
_("host");
|
||||
_("key");
|
||||
_("port");
|
||||
// capabilities
|
||||
_("caps");
|
||||
// introducer host
|
||||
_("ihost0");
|
||||
_("ihost1");
|
||||
_("ihost2");
|
||||
// introducer port
|
||||
_("iport0");
|
||||
_("iport1");
|
||||
_("iport2");
|
||||
// introducer key
|
||||
_("ikey0");
|
||||
_("ikey1");
|
||||
_("ikey2");
|
||||
// introducer tag
|
||||
_("itag0");
|
||||
_("itag1");
|
||||
_("itag2");
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user