Print timestamp when pausing. (#521)
* Try printing a timestamp when the movie is paused. * Prettyprint timestamp * Update message for all languages.
This commit is contained in:
parent
7a1752fc59
commit
2ef85706c6
@ -360,7 +360,7 @@ class SyncplayClient(object):
|
|||||||
self._player.setPaused(True)
|
self._player.setPaused(True)
|
||||||
madeChangeOnPlayer = True
|
madeChangeOnPlayer = True
|
||||||
if (self.lastLeftTime < time.time() - constants.OSD_DURATION) or hideFromOSD == True:
|
if (self.lastLeftTime < time.time() - constants.OSD_DURATION) or hideFromOSD == True:
|
||||||
self.ui.showMessage(getMessage("pause-notification").format(setBy), hideFromOSD)
|
self.ui.showMessage(getMessage("pause-notification").format(setBy, utils.formatTime(self.getGlobalPosition())), hideFromOSD)
|
||||||
else:
|
else:
|
||||||
self.ui.showMessage(getMessage("left-paused-notification").format(self.lastLeftUser, setBy), hideFromOSD)
|
self.ui.showMessage(getMessage("left-paused-notification").format(self.lastLeftUser, setBy), hideFromOSD)
|
||||||
return madeChangeOnPlayer
|
return madeChangeOnPlayer
|
||||||
|
|||||||
@ -23,7 +23,7 @@ de = {
|
|||||||
"slowdown-notification": "Verlangsamt wegen Zeitdifferenz mit {}", # User
|
"slowdown-notification": "Verlangsamt wegen Zeitdifferenz mit {}", # User
|
||||||
"revert-notification": "Normalgeschwindigkeit",
|
"revert-notification": "Normalgeschwindigkeit",
|
||||||
|
|
||||||
"pause-notification": "{} pausierte", # User
|
"pause-notification": "{} pausierte ({})", # User
|
||||||
"unpause-notification": "{} startete", # User
|
"unpause-notification": "{} startete", # User
|
||||||
"seek-notification": "{} sprang von {} nach {}", # User, from time, to time
|
"seek-notification": "{} sprang von {} nach {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ en = {
|
|||||||
"slowdown-notification": "Slowing down due to time difference with {}", # User
|
"slowdown-notification": "Slowing down due to time difference with {}", # User
|
||||||
"revert-notification": "Reverting speed back to normal",
|
"revert-notification": "Reverting speed back to normal",
|
||||||
|
|
||||||
"pause-notification": "{} paused", # User
|
"pause-notification": "{} paused ({})", # User
|
||||||
"unpause-notification": "{} unpaused", # User
|
"unpause-notification": "{} unpaused", # User
|
||||||
"seek-notification": "{} jumped from {} to {}", # User, from time, to time
|
"seek-notification": "{} jumped from {} to {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ es = {
|
|||||||
"slowdown-notification": "Ralentizando debido a diferencia de tiempo con {}", # User
|
"slowdown-notification": "Ralentizando debido a diferencia de tiempo con {}", # User
|
||||||
"revert-notification": "Revirtiendo a la velocidad normal",
|
"revert-notification": "Revirtiendo a la velocidad normal",
|
||||||
|
|
||||||
"pause-notification": "{} pausado", # User
|
"pause-notification": "{} pausado ({})", # User
|
||||||
"unpause-notification": "{} resumido", # User
|
"unpause-notification": "{} resumido", # User
|
||||||
"seek-notification": "{} saltó desde {} hasta {}", # User, from time, to time
|
"seek-notification": "{} saltó desde {} hasta {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ fr = {
|
|||||||
"slowdown-notification": "Ralentissement dû au décalage de temps avec {}", # User
|
"slowdown-notification": "Ralentissement dû au décalage de temps avec {}", # User
|
||||||
"revert-notification": "Retour à la vitesse normale",
|
"revert-notification": "Retour à la vitesse normale",
|
||||||
|
|
||||||
"pause-notification": "{} en pause", # User
|
"pause-notification": "{} en pause ({})", # User
|
||||||
"unpause-notification": "{} non suspendu", # User
|
"unpause-notification": "{} non suspendu", # User
|
||||||
"seek-notification": "{} est passé de {} à {}", # User, from time, to time
|
"seek-notification": "{} est passé de {} à {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ it = {
|
|||||||
"slowdown-notification": "Rallento a causa della differenza temporale con {}", # User
|
"slowdown-notification": "Rallento a causa della differenza temporale con {}", # User
|
||||||
"revert-notification": "Ripristino la velocità di riproduzione normale",
|
"revert-notification": "Ripristino la velocità di riproduzione normale",
|
||||||
|
|
||||||
"pause-notification": "{} ha messo in pausa", # User
|
"pause-notification": "{} ha messo in pausa ({})", # User
|
||||||
"unpause-notification": "{} ha ripreso la riproduzione", # User
|
"unpause-notification": "{} ha ripreso la riproduzione", # User
|
||||||
"seek-notification": "{} è passato da {} a {}", # User, from time, to time
|
"seek-notification": "{} è passato da {} a {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ pt_BR = {
|
|||||||
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
|
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
|
||||||
"revert-notification": "Revertendo velocidade ao normal",
|
"revert-notification": "Revertendo velocidade ao normal",
|
||||||
|
|
||||||
"pause-notification": "{} pausou", # User
|
"pause-notification": "{} pausou ({})", # User
|
||||||
"unpause-notification": "{} despausou", # User
|
"unpause-notification": "{} despausou", # User
|
||||||
"seek-notification": "{} saltou de {} para {}", # User, from time, to time
|
"seek-notification": "{} saltou de {} para {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ pt_PT = {
|
|||||||
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
|
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
|
||||||
"revert-notification": "Revertendo velocidade ao normal",
|
"revert-notification": "Revertendo velocidade ao normal",
|
||||||
|
|
||||||
"pause-notification": "{} pausou", # User
|
"pause-notification": "{} pausou ({})", # User
|
||||||
"unpause-notification": "{} despausou", # User
|
"unpause-notification": "{} despausou", # User
|
||||||
"seek-notification": "{} saltou de {} para {}", # User, from time, to time
|
"seek-notification": "{} saltou de {} para {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ ru = {
|
|||||||
"slowdown-notification": "Воспроизведение замедлено из-за разницы во времени с {}", # User
|
"slowdown-notification": "Воспроизведение замедлено из-за разницы во времени с {}", # User
|
||||||
"revert-notification": "Возвращаемся к нормальной скорости воспроизведения",
|
"revert-notification": "Возвращаемся к нормальной скорости воспроизведения",
|
||||||
|
|
||||||
"pause-notification": "{} приостановил воспроизведение", # User
|
"pause-notification": "{} приостановил воспроизведение ({})", # User
|
||||||
"unpause-notification": "{} возобновил воспроизведение", # User
|
"unpause-notification": "{} возобновил воспроизведение", # User
|
||||||
"seek-notification": "{} перемотал с {} на {}", # User, from time, to time
|
"seek-notification": "{} перемотал с {} на {}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ tr = {
|
|||||||
"slowdown-notification": "{} ile zaman farkı nedeniyele nedeniyle yavaşlıyor", # User
|
"slowdown-notification": "{} ile zaman farkı nedeniyele nedeniyle yavaşlıyor", # User
|
||||||
"revert-notification": "Hızı normale döndürülüyor",
|
"revert-notification": "Hızı normale döndürülüyor",
|
||||||
|
|
||||||
"pause-notification": "{} duraklattı", # User
|
"pause-notification": "{} duraklattı ({})", # User
|
||||||
"unpause-notification": "{} devam ettirdi", # User
|
"unpause-notification": "{} devam ettirdi", # User
|
||||||
"seek-notification": "{}, {} konumundan {} konumuna atladı", # User, from time, to time
|
"seek-notification": "{}, {} konumundan {} konumuna atladı", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ zh_CN = {
|
|||||||
"slowdown-notification": "与{}不同步,正在慢速播放", # User
|
"slowdown-notification": "与{}不同步,正在慢速播放", # User
|
||||||
"revert-notification": "播放速度恢复一倍速",
|
"revert-notification": "播放速度恢复一倍速",
|
||||||
|
|
||||||
"pause-notification": "{}暂停了", # User
|
"pause-notification": "{}暂停了 ({})", # User
|
||||||
"unpause-notification": "{}重新开始播放", # User
|
"unpause-notification": "{}重新开始播放", # User
|
||||||
"seek-notification": "{}从{}跳转到{}", # User, from time, to time
|
"seek-notification": "{}从{}跳转到{}", # User, from time, to time
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user