From a4777f3e5df72153e07d3d4fd8d19650a32f26e5 Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Mon, 1 Feb 2021 15:48:16 -0500 Subject: [PATCH] Console: Indent address options on /confignet hostname -> host name or other rewording --- .../i2p/router/web/helpers/ConfigKeyringHandler.java | 2 +- .../net/i2p/router/web/helpers/ConfigNetHandler.java | 2 +- .../net/i2p/router/web/helpers/ConfigNetHelper.java | 5 +++-- apps/routerconsole/jsp/confignet.jsp | 10 +++++----- apps/routerconsole/jsp/configreseed.jsp | 2 +- apps/routerconsole/jsp/help-reachability.jsi | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigKeyringHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigKeyringHandler.java index 5348bab119..f205240085 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigKeyringHandler.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigKeyringHandler.java @@ -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 diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java index acd2c23b85..bb40ab5bac 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHandler.java @@ -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; } diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java index 30fbc1f872..9e98303e13 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigNetHelper.java @@ -236,6 +236,7 @@ public class ConfigNetHelper extends HelperBase { } StringBuilder buf = new StringBuilder(128); for (String addr : addrs) { + buf.append("\n<br> "); 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> ") + .append(_t("Add host name or IP")) .append(": "); } buf.append("<input name=\"udpHost1\" type=\"text\" size=\"16\" >"); diff --git a/apps/routerconsole/jsp/confignet.jsp b/apps/routerconsole/jsp/confignet.jsp index bf81f90dc0..3b71488582 100644 --- a/apps/routerconsole/jsp/confignet.jsp +++ b/apps/routerconsole/jsp/confignet.jsp @@ -40,7 +40,7 @@ </p> <p> <%=intl._t("Also, <b>do not enter a private IP address</b> like 127.0.0.1 or 192.168.1.1.")%> - <%=intl._t("If you specify the wrong IP address or hostname, or do not properly configure your NAT or firewall, your network performance will degrade substantially.")%> + <%=intl._t("If you specify the wrong IP address, or do not properly configure your NAT or firewall, your network performance will degrade substantially.")%> <%=intl._t("When in doubt, leave the settings at the defaults.")%> </p> </td> @@ -59,7 +59,7 @@ </tr> <tr> <td> - <b class="suboption"><%=intl._t("Externally reachable hostname or IP address")%>:</b><br> + <b class="suboption"><%=intl._t("Externally reachable IP address")%>:</b><br> <label><input type="radio" class="optbox" name="udpAutoIP" value="local,upnp,ssu" <%=nethelper.getUdpAutoIPChecked(3) %> > <%=intl._t("Use all auto-detect methods")%></label><br> <label><input type="radio" class="optbox" name="udpAutoIP" value="local,ssu" <%=nethelper.getUdpAutoIPChecked(4) %> > @@ -71,7 +71,7 @@ <label><input type="radio" class="optbox" name="udpAutoIP" value="hidden" <%=nethelper.getUdpAutoIPChecked(2) %> > <%=intl._t("Hidden mode - do not publish IP")%> <i><%=intl._t("(prevents participating traffic)")%></i></label><br> <label><input type="radio" class="optbox" name="udpAutoIP" value="fixed" <%=nethelper.getUdpAutoIPChecked(1) %> > - <%=intl._t("Specify hostname or IP")%>:</label> + <%=intl._t("Specify host name or IP")%>:</label> <%=nethelper.getAddressSelector() %> </td> </tr> @@ -137,7 +137,7 @@ </tr> <tr> <td> - <b class="suboption"><%=intl._t("Externally reachable hostname or IP address")%>:</b><br> + <b class="suboption"><%=intl._t("Externally reachable IP address")%>:</b><br> <label><input type="radio" class="optbox" name="ntcpAutoIP" value="true" <%=nethelper.getTcpAutoIPChecked(2) %> > <%=intl._t("Use auto-detected IP address")%> <i>(<%=intl._t("currently")%> <jsp:getProperty name="nethelper" property="udpIP" />)</i> @@ -149,7 +149,7 @@ <label><input type="radio" class="optbox" name="ntcpAutoIP" value="disabled" <%=nethelper.getTcpAutoIPChecked(4) %> > <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that throttles or blocks outbound TCP)")%></i></label><br> <label><input type="radio" class="optbox" name="ntcpAutoIP" value="false" <%=nethelper.getTcpAutoIPChecked(1) %> > - <%=intl._t("Specify hostname or IP")%>:</label> + <%=intl._t("Specify host name or IP")%>:</label> <input name ="ntcphost" type="text" size="16" value="<jsp:getProperty name="nethelper" property="ntcphostname" />" > </td> </tr> diff --git a/apps/routerconsole/jsp/configreseed.jsp b/apps/routerconsole/jsp/configreseed.jsp index 44672c023d..8823f53b62 100644 --- a/apps/routerconsole/jsp/configreseed.jsp +++ b/apps/routerconsole/jsp/configreseed.jsp @@ -26,7 +26,7 @@ <ul><li> <%=intl._t("The proxy may be a remote public proxy, or may be running on your computer (localhost).")%> </li><li> -<%=intl._t("To use a proxy, configure the type, hostname, and port below.")%> +<%=intl._t("To use a proxy, configure the type, host, and port below.")%> </li><li> <%=intl._t("If you are running Tor Browser, reseed through it by configuring SOCKS 5, localhost, port 9150.")%> </li><li> diff --git a/apps/routerconsole/jsp/help-reachability.jsi b/apps/routerconsole/jsp/help-reachability.jsi index a4bfd37b16..f4a9765e08 100644 --- a/apps/routerconsole/jsp/help-reachability.jsi +++ b/apps/routerconsole/jsp/help-reachability.jsi @@ -61,7 +61,7 @@ <%=intl._t("However, a restart is always required after this error.")%> </li> <li><b><%=intl._t("ERR - UDP Disabled and Inbound TCP host/port not set")%>:</b> - <%=intl._t("You have not configured inbound TCP with a hostname and port on the Network Configuration page, however you have disabled UDP.")%> + <%=intl._t("You have not configured inbound TCP with an address and port on the Network Configuration page, however you have disabled UDP.")%> <%=intl._t("Therefore your router cannot accept inbound connections.")%> <%=intl._t("Please configure a TCP host and port on the Network Configuration page or enable UDP.")%> </li> -- GitLab