i2ptunnel java tagging and fixups
This commit is contained in:
@ -359,7 +359,7 @@ public class IndexBean {
|
|||||||
if (tun != null && tun.getName() != null)
|
if (tun != null && tun.getName() != null)
|
||||||
return tun.getName();
|
return tun.getName();
|
||||||
else
|
else
|
||||||
return "New Tunnel";
|
return _("New Tunnel");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getClientPort(int tunnel) {
|
public String getClientPort(int tunnel) {
|
||||||
@ -379,16 +379,16 @@ public class IndexBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getTypeName(String internalType) {
|
public String getTypeName(String internalType) {
|
||||||
if ("client".equals(internalType)) return "Standard client";
|
if ("client".equals(internalType)) return _("Standard client");
|
||||||
else if ("httpclient".equals(internalType)) return "HTTP client";
|
else if ("httpclient".equals(internalType)) return _("HTTP client");
|
||||||
else if ("ircclient".equals(internalType)) return "IRC client";
|
else if ("ircclient".equals(internalType)) return _("IRC client");
|
||||||
else if ("server".equals(internalType)) return "Standard server";
|
else if ("server".equals(internalType)) return _("Standard server");
|
||||||
else if ("httpserver".equals(internalType)) return "HTTP server";
|
else if ("httpserver".equals(internalType)) return _("HTTP server");
|
||||||
else if ("sockstunnel".equals(internalType)) return "SOCKS 4/4a/5 proxy";
|
else if ("sockstunnel".equals(internalType)) return _("SOCKS 4/4a/5 proxy");
|
||||||
else if ("connectclient".equals(internalType)) return "CONNECT/SSL/HTTPS proxy";
|
else if ("connectclient".equals(internalType)) return _("CONNECT/SSL/HTTPS proxy");
|
||||||
else if ("ircserver".equals(internalType)) return "IRC server";
|
else if ("ircserver".equals(internalType)) return _("IRC server");
|
||||||
else if ("streamrclient".equals(internalType)) return "Streamr client";
|
else if ("streamrclient".equals(internalType)) return _("Streamr client");
|
||||||
else if ("streamrserver".equals(internalType)) return "Streamr server";
|
else if ("streamrserver".equals(internalType)) return _("Streamr server");
|
||||||
else return internalType;
|
else return internalType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -935,4 +935,8 @@ public class IndexBean {
|
|||||||
buf.append((String)msgs.get(i)).append("\n");
|
buf.append((String)msgs.get(i)).append("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String _(String key) {
|
||||||
|
return Messages._(key, _context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,10 @@ public class Messages {
|
|||||||
return Translate.getString(key, _context, BUNDLE_NAME);
|
return Translate.getString(key, _context, BUNDLE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String _(String key, I2PAppContext ctx) {
|
||||||
|
return Translate.getString(key, ctx, BUNDLE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* translate a string with a parameter
|
* translate a string with a parameter
|
||||||
* This is a lot more expensive than getString(s, ctx), so use sparingly.
|
* This is a lot more expensive than getString(s, ctx), so use sparingly.
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
<% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType)) {
|
<% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType)) {
|
||||||
%><div id="destinationField" class="rowItem">
|
%><div id="destinationField" class="rowItem">
|
||||||
<label for="proxyList" accesskey="x">
|
<label for="proxyList" accesskey="x">
|
||||||
<%=intl._("Outproies")%>(<span class="accessKey">x</span>):
|
<%=intl._("Outproxies")%>(<span class="accessKey">x</span>):
|
||||||
</label>
|
</label>
|
||||||
<input type="text" size="30" id="proxyList" name="proxyList" title="List of Outproxy I2P destinations" value="<%=editBean.getClientDestination(curTunnel)%>" class="freetext" />
|
<input type="text" size="30" id="proxyList" name="proxyList" title="List of Outproxy I2P destinations" value="<%=editBean.getClientDestination(curTunnel)%>" class="freetext" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -167,7 +167,7 @@
|
|||||||
<option value="ircserver">IRC</option>
|
<option value="ircserver">IRC</option>
|
||||||
<option value="streamrserver">Streamr</option>
|
<option value="streamrserver">Streamr</option>
|
||||||
</select>
|
</select>
|
||||||
<input class="control" type="submit" value="Create" />
|
<input class="control" type="submit" value="<%=intl._("Create")%>" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user