Console: Indent address options on /confignet

hostname -> host name or other rewording
This commit is contained in:
zzz
2021-02-01 15:48:16 -05:00
parent 3314d4bf31
commit a4777f3e5d
6 changed files with 12 additions and 11 deletions

View File

@@ -84,7 +84,7 @@ public class ConfigKeyringHandler extends FormHandler {
spk = bdin.getUnblindedPubKey();
}
if (spk == null) {
addFormError(_t("Requires hostname, destination, or blinded Base32"));
addFormError(_t("Requires host name, destination, or blinded Base32"));
return;
}
// from BlindCache

View File

@@ -466,7 +466,7 @@ public class ConfigNetHandler extends FormHandler {
// TODO set IPv6 arg based on configuration?
boolean rv = TransportUtil.isPubliclyRoutable(iab, true);
if (!rv)
addFormError(_t("The hostname or IP {0} is not publicly routable", addr));
addFormError(_t("The address {0} is not publicly routable", addr));
return rv;
}

View File

@@ -236,6 +236,7 @@ public class ConfigNetHelper extends HelperBase {
}
StringBuilder buf = new StringBuilder(128);
for (String addr : addrs) {
buf.append("\n<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
buf.append("<input type=\"checkbox\" class=\"optbox\" value=\"foo\" name=\"addr_");
buf.append(addr);
buf.append('"');
@@ -243,10 +244,10 @@ public class ConfigNetHelper extends HelperBase {
buf.append(CHECKED);
buf.append("> ");
buf.append(addr);
buf.append("<br>\n");
}
if (!addrs.isEmpty()) {
buf.append(_t("Add host name or IP"))
buf.append("\n<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
.append(_t("Add host name or IP"))
.append(": ");
}
buf.append("<input name=\"udpHost1\" type=\"text\" size=\"16\" >");