diff --git a/syncplay/client.py b/syncplay/client.py index f7955be..1385b0f 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -719,13 +719,15 @@ class SyncplayClient(object): self._reconnectingService.startService() def connectedNow(f): + hostIP = connectionHandle.result.transport.addr[0] + self.ui.showMessage(getMessage("handshake-successful-notification").format(host, hostIP)) return def failed(f): reactor.callLater(0.1, self.ui.showErrorMessage, getMessage("connection-failed-notification"), True) reactor.callLater(0.1, self.stop, True) - waitForConnection.addCallbacks(connectedNow, failed) + connectionHandle = waitForConnection.addCallbacks(connectedNow, failed) message = getMessage("connection-attempt-notification").format(host, port) self.ui.showMessage(message) reactor.run() diff --git a/syncplay/messages_de.py b/syncplay/messages_de.py index 978685b..e370015 100755 --- a/syncplay/messages_de.py +++ b/syncplay/messages_de.py @@ -16,6 +16,7 @@ de = { "connection-failed-notification": "Verbindung zum Server fehlgeschlagen", "connected-successful-notification": "Erfolgreich mit Server verbunden", "retrying-notification": "%s, versuche erneut in %d Sekunden...", # Seconds + "handshake-successful-notification": "Connection established with {} ({})", # TODO: Translate "rewind-notification": "Zurückgespult wegen Zeitdifferenz mit {}", # User "fastforward-notification": "Vorgespult wegen Zeitdifferenz mit {}", # User diff --git a/syncplay/messages_en.py b/syncplay/messages_en.py index acf5c37..2cbf725 100755 --- a/syncplay/messages_en.py +++ b/syncplay/messages_en.py @@ -16,6 +16,7 @@ en = { "connection-failed-notification": "Connection with server failed", "connected-successful-notification": "Successfully connected to server", "retrying-notification": "%s, Retrying in %d seconds...", # Seconds + "handshake-successful-notification": "Connection established with {} ({})", "rewind-notification": "Rewinded due to time difference with {}", # User "fastforward-notification": "Fast-forwarded due to time difference with {}", # User diff --git a/syncplay/messages_it.py b/syncplay/messages_it.py index 2ecff68..cdc20a0 100755 --- a/syncplay/messages_it.py +++ b/syncplay/messages_it.py @@ -16,6 +16,7 @@ it = { "connection-failed-notification": "Connessione col server fallita", "connected-successful-notification": "Connessione al server effettuata con successo", "retrying-notification": "%s, Nuovo tentativo in %d secondi...", # Seconds + "handshake-successful-notification": "Connessione stabilita con {} ({})", "rewind-notification": "Riavvolgo a causa della differenza temporale con {}", # User "fastforward-notification": "Avanzamento rapido a causa della differenza temporale con {}", # User diff --git a/syncplay/messages_ru.py b/syncplay/messages_ru.py index 18eeebe..b836abf 100755 --- a/syncplay/messages_ru.py +++ b/syncplay/messages_ru.py @@ -16,6 +16,7 @@ ru = { "connection-failed-notification": "Не удалось подключиться к серверу", "connected-successful-notification": "Соединение с сервером установлено", "retrying-notification": "%s, следующая попытка через %d секунд(ы)...", # Seconds + "handshake-successful-notification": "Connection established with {} ({})", # TODO: Translate "rewind-notification": "Перемотано из-за разницы во времени с {}", # User "fastforward-notification": "Ускорено из-за разницы во времени с {}", # User