Report the server and port to which we are connecting when we log on.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1578 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-07-16 05:42:53 +00:00
parent cbca08878d
commit a2339cea0b
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# #
# $Id: micasa.properties,v 1.2 2002/07/12 17:06:52 mdb Exp $ # $Id: micasa.properties,v 1.3 2002/07/16 05:42:53 mdb Exp $
# #
# Translation strings for general MiCasa messages. # Translation strings for general MiCasa messages.
@@ -10,7 +10,7 @@ m.logon = Logon
m.status = Connection status m.status = Connection status
m.remember_password = Remember my password m.remember_password = Remember my password
m.logging_on = Logging on... m.logging_on = Logging on to {0}:{1}...
m.logon_success = Logged on successfully. m.logon_success = Logged on successfully.
m.logged_off = Logged off. m.logged_off = Logged off.
m.connection_failed = Server connection failed: {0} m.connection_failed = Server connection failed: {0}
@@ -1,5 +1,5 @@
// //
// $Id: LogonPanel.java,v 1.5 2002/07/12 17:01:28 mdb Exp $ // $Id: LogonPanel.java,v 1.6 2002/07/16 05:42:53 mdb Exp $
package com.threerings.micasa.client; package com.threerings.micasa.client;
@@ -180,7 +180,10 @@ public class LogonPanel extends JPanel
String username = _username.getText().trim(); String username = _username.getText().trim();
String password = new String(_password.getPassword()).trim(); String password = new String(_password.getPassword()).trim();
_status.append(_msgs.get("m.logging_on") + "\n"); String server = _ctx.getClient().getHostname();
int port = _ctx.getClient().getPort();
String msg = MessageBundle.tcompose("m.logging_on", server, String.valueOf(port));
_status.append(_msgs.xlate(msg) + "\n");
// configure the client with some credentials and logon // configure the client with some credentials and logon
Credentials creds = new UsernamePasswordCreds(username, password); Credentials creds = new UsernamePasswordCreds(username, password);