Add notification when unpause is replaced with 'set ready'
This commit is contained in:
parent
24e9afb2b6
commit
305e400eac
@ -169,6 +169,7 @@ class SyncplayClient(object):
|
|||||||
self._playerPaused = paused
|
self._playerPaused = paused
|
||||||
self.changeReadyState(True, manuallyInitiated=True)
|
self.changeReadyState(True, manuallyInitiated=True)
|
||||||
pauseChange = False
|
pauseChange = False
|
||||||
|
self.ui.showMessage(getMessage("ready-to-unpause-notification"))
|
||||||
else:
|
else:
|
||||||
lastPausedDiff = time.time() - self.lastPausedOnLeaveTime if self.lastPausedOnLeaveTime else None
|
lastPausedDiff = time.time() - self.lastPausedOnLeaveTime if self.lastPausedOnLeaveTime else None
|
||||||
if lastPausedDiff is not None and lastPausedDiff < constants.LAST_PAUSED_DIFF_THRESHOLD:
|
if lastPausedDiff is not None and lastPausedDiff < constants.LAST_PAUSED_DIFF_THRESHOLD:
|
||||||
|
|||||||
@ -35,6 +35,7 @@ en = {
|
|||||||
|
|
||||||
"not-all-ready" : u"Not ready: {}", # Usernames
|
"not-all-ready" : u"Not ready: {}", # Usernames
|
||||||
"all-users-ready" : u"Everyone is ready ({} users)", #Number of ready users
|
"all-users-ready" : u"Everyone is ready ({} users)", #Number of ready users
|
||||||
|
"ready-to-unpause-notification" : u"You are now set as ready - unpause again to unpause",
|
||||||
|
|
||||||
"identifying-as-controller-notification" : u"Identifying as room manager with password '{}'...",
|
"identifying-as-controller-notification" : u"Identifying as room manager with password '{}'...",
|
||||||
"failed-to-identify-as-controller-notification" : u"<{}> failed to identify as a room manager.",
|
"failed-to-identify-as-controller-notification" : u"<{}> failed to identify as a room manager.",
|
||||||
@ -376,6 +377,7 @@ ru = {
|
|||||||
|
|
||||||
"not-all-ready" : u"Not ready: {}", # Usernames # TODO: Translate into Russian
|
"not-all-ready" : u"Not ready: {}", # Usernames # TODO: Translate into Russian
|
||||||
"all-users-ready" : u"Everyone is ready ({} users)", #Number of ready users # TODO: Translate into Russian
|
"all-users-ready" : u"Everyone is ready ({} users)", #Number of ready users # TODO: Translate into Russian
|
||||||
|
"ready-to-unpause-notification" : u"You are now set as ready - unpause again to unpause", # TODO: Translate into Russian
|
||||||
|
|
||||||
"identifying-as-controller-notification" : u"Identifying as room manager with password '{}'...", # TODO: Translate into Russian
|
"identifying-as-controller-notification" : u"Identifying as room manager with password '{}'...", # TODO: Translate into Russian
|
||||||
"failed-to-identify-as-controller-notification" : u"<{}> failed to identify as a room manager.", # TODO: Translate into Russian
|
"failed-to-identify-as-controller-notification" : u"<{}> failed to identify as a room manager.", # TODO: Translate into Russian
|
||||||
@ -718,6 +720,7 @@ de = {
|
|||||||
|
|
||||||
"not-all-ready" : u"Not ready: {}", # Usernames # TODO: Translate into German
|
"not-all-ready" : u"Not ready: {}", # Usernames # TODO: Translate into German
|
||||||
"all-users-ready" : u"Everyone is ready ({} users)", #Number of ready users # TODO: Translate into German
|
"all-users-ready" : u"Everyone is ready ({} users)", #Number of ready users # TODO: Translate into German
|
||||||
|
"ready-to-unpause-notification" : u"You are now set as ready - unpause again to unpause", # TODO: Translate into German
|
||||||
|
|
||||||
"identifying-as-controller-notification" : u"Identifiziere als Raumleiter mit Passwort '{}'...", # TODO: find a better translation to "room manager"
|
"identifying-as-controller-notification" : u"Identifiziere als Raumleiter mit Passwort '{}'...", # TODO: find a better translation to "room manager"
|
||||||
"failed-to-identify-as-controller-notification" : u"<{}> konnte sich nicht als Raumleiter identifizieren.",
|
"failed-to-identify-as-controller-notification" : u"<{}> konnte sich nicht als Raumleiter identifizieren.",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user