diff --git a/syncplay/client.py b/syncplay/client.py index 7c32085..55ce8d1 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -494,7 +494,7 @@ class SyncplayClient(object): @wraps(f) def wrapper(self, *args, **kwds): if not utils.meetsMinVersion(self.serverVersion,minVersion): - self.ui.showErrorMessage(u"This feature is not supported by the server. The feature requires a server running Syncplay {}+, but the server is running Syncplay {}.".format(minVersion, self.serverVersion)) + self.ui.showErrorMessage(getMessage("not-supported-by-server-error").format(minVersion, self.serverVersion)) return return f(self, *args, **kwds) return wrapper diff --git a/syncplay/messages.py b/syncplay/messages.py index 7532dfc..c825696 100755 --- a/syncplay/messages.py +++ b/syncplay/messages.py @@ -126,6 +126,8 @@ en = { "vlc-failed-versioncheck": "This version of VLC is not supported by Syncplay. Please use VLC 2.", "vlc-failed-other" : "When trying to load the syncplay.lua interface script VLC has provided the following error: {}", # Syncplay Error + "not-supported-by-server-error" : "This feature is not supported by the server. The feature requires a server running Syncplay {}+, but the server is running Syncplay {}.", #minVersion, serverVersion + "invalid-seek-value" : u"Invalid seek value", "invalid-offset-value" : u"Invalid offset value", @@ -474,6 +476,8 @@ ru = { "vlc-failed-versioncheck" : u"Данная версия VLC не поддерживается Syncplay. Пожалуйста, используйте VLC версии 2 или выше.", "vlc-failed-other" : u"Во время загрузки скрипта интерфейса syncplay.lua в VLC произошла следующая ошибка: {}", # Syncplay Error + "not-supported-by-server-error" : "This feature is not supported by the server. The feature requires a server running Syncplay {}+, but the server is running Syncplay {}.", #minVersion, serverVersion #TODO: Translate into Russian + "invalid-seek-value" : u"Invalid seek value", # TODO: Translate into Russian "invalid-offset-value" : u"Invalid offset value", # TODO: Translate into Russian @@ -822,6 +826,8 @@ de = { "vlc-failed-versioncheck": u"Diese VLC-Version wird von Syncplay nicht unterstützt. Bitte nutze VLC 2.0", "vlc-failed-other" : u"Beim Laden des syncplay.lua Interface-Skripts durch VLC trat folgender Fehler auf: {}", # Syncplay Error + "not-supported-by-server-error" : "This feature is not supported by the server. The feature requires a server running Syncplay {}+, but the server is running Syncplay {}.", #minVersion, serverVersion #TODO: Translate into Russian # TODO: Translate into German + "invalid-seek-value" : u"Invalid seek value", # TODO: Translate into German "invalid-offset-value" : u"Invalid offset value", # TODO: Translate into German