Move ready/not-ready messages into messages.py
This commit is contained in:
parent
b9374adc6c
commit
fe040438f5
@ -505,9 +505,9 @@ class SyncplayClient(object):
|
|||||||
showOnOSD = False
|
showOnOSD = False
|
||||||
hideFromOSD = not showOnOSD
|
hideFromOSD = not showOnOSD
|
||||||
if isReady:
|
if isReady:
|
||||||
message = "<{}> I'm ready".format(username)
|
message = getMessage("user-ready-notification").format(username)
|
||||||
else:
|
else:
|
||||||
message = "<{}> I'm not ready".format(username)
|
message = getMessage("user-not-ready-notification").format(username)
|
||||||
self.ui.showMessage(message, hideFromOSD)
|
self.ui.showMessage(message, hideFromOSD)
|
||||||
|
|
||||||
@requireMinServerVersion(constants.CONTROLLED_ROOMS_MIN_VERSION)
|
@requireMinServerVersion(constants.CONTROLLED_ROOMS_MIN_VERSION)
|
||||||
|
|||||||
@ -33,6 +33,9 @@ en = {
|
|||||||
"playing-notification" : "<{}> is playing '{}' ({})", # User, file, duration
|
"playing-notification" : "<{}> is playing '{}' ({})", # User, file, duration
|
||||||
"playing-notification/room-addendum" : " in room: '{}'", # Room
|
"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 '{}'...",
|
"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.",
|
"failed-to-identify-as-controller-notification" : u"<{}> failed to identify as a room controller.",
|
||||||
"authenticated-as-controller-notification" : u"<{}> authenticated as a room controller",
|
"authenticated-as-controller-notification" : u"<{}> authenticated as a room controller",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user