Commit 5e0f7010 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Replaced hardcoded english words with resource bundles. JM-286


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1328 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0ac80444
...@@ -145,24 +145,27 @@ public class AdminConsolePlugin implements Plugin { ...@@ -145,24 +145,27 @@ public class AdminConsolePlugin implements Plugin {
jetty.start(); jetty.start();
String warning = LocaleUtils.getLocalizedString("admin.console.warning");
String listening = LocaleUtils.getLocalizedString("admin.console.listening");
if (!plainStarted && !secureStarted) { if (!plainStarted && !secureStarted) {
Log.info("Warning: admin console not started due to configuration settings."); Log.info(warning);
System.out.println("Warning: admin console not started due to configuration settings."); System.out.println(warning);
} }
else if (!plainStarted && secureStarted) { else if (!plainStarted && secureStarted) {
Log.info("Admin console listening at https://" + Log.info(listening + " https://" +
XMPPServer.getInstance().getServerInfo().getName() + ":" + securePort); XMPPServer.getInstance().getServerInfo().getName() + ":" + securePort);
System.out.println("Admin console listening at https://" + System.out.println(listening + " https://" +
XMPPServer.getInstance().getServerInfo().getName() + ":" + securePort); XMPPServer.getInstance().getServerInfo().getName() + ":" + securePort);
} }
else if (!secureStarted && plainStarted) { else if (!secureStarted && plainStarted) {
Log.info("Admin console listening at http://" + Log.info(listening + " http://" +
XMPPServer.getInstance().getServerInfo().getName() + ":" + port); XMPPServer.getInstance().getServerInfo().getName() + ":" + port);
System.out.println("Admin console listening at http://" + System.out.println(listening + " http://" +
XMPPServer.getInstance().getServerInfo().getName() + ":" + port); XMPPServer.getInstance().getServerInfo().getName() + ":" + port);
} }
else { else {
String msg = "Admin console listening at:\n" + String msg = listening + ":\n" +
" http://" + XMPPServer.getInstance().getServerInfo().getName() + ":" + " http://" + XMPPServer.getInstance().getServerInfo().getName() + ":" +
port + "\n" + port + "\n" +
" https://" + XMPPServer.getInstance().getServerInfo().getName() + ":" + " https://" + XMPPServer.getInstance().getServerInfo().getName() + ":" +
......
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</tr> </tr>
<tr> <tr>
<td class="c1"> <td class="c1">
<fmt:message key="server.props.ssl_port /> <fmt:message key="server.props.ssl_port" />
</td> </td>
<td class="c2"> <td class="c2">
<input type="text" name="sslPort" value="<%= (sslPort > 0 ? String.valueOf(sslPort) : "") %>" <input type="text" name="sslPort" value="<%= (sslPort > 0 ? String.valueOf(sslPort) : "") %>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment