From fe040438f55fa0f55f71c55f73f6cd4c4eca3758 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sat, 6 Dec 2014 19:38:34 +0000 Subject: [PATCH] Move ready/not-ready messages into messages.py --- syncplay/client.py | 4 ++-- syncplay/messages.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/syncplay/client.py b/syncplay/client.py index dfac60c..907d243 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -505,9 +505,9 @@ class SyncplayClient(object): showOnOSD = False hideFromOSD = not showOnOSD if isReady: - message = "<{}> I'm ready".format(username) + message = getMessage("user-ready-notification").format(username) else: - message = "<{}> I'm not ready".format(username) + message = getMessage("user-not-ready-notification").format(username) self.ui.showMessage(message, hideFromOSD) @requireMinServerVersion(constants.CONTROLLED_ROOMS_MIN_VERSION) diff --git a/syncplay/messages.py b/syncplay/messages.py index 1bf5f37..aee0f99 100755 --- a/syncplay/messages.py +++ b/syncplay/messages.py @@ -33,6 +33,9 @@ en = { "playing-notification" : "<{}> is playing '{}' ({})", # User, file, duration "playing-notification/room-addendum" : " in room: '{}'", # Room + "user-ready-notification" : "<{}> I'm ready", # Username + "user-not-ready-notification" : "<{}> I'm ready", # Username + "identifying-as-controller-notification" : u"Identifying as room controller with password '{}'...", "failed-to-identify-as-controller-notification" : u"<{}> failed to identify as a room controller.", "authenticated-as-controller-notification" : u"<{}> authenticated as a room controller",