show server ip and port: add stubs for other languages

This commit is contained in:
Abhay Raizada 2016-01-13 12:58:27 +05:30
parent d68583f933
commit c2770b920b
2 changed files with 17 additions and 8 deletions

View File

@ -349,8 +349,8 @@ en = {
"no-salt-notification" : "PLEASE NOTE: To allow room operator passwords generated by this server instance to still work when the server is restarted, please add the following command line argument when running the Syncplay server in the future: --salt {}", #Salt
"local-ip-notification" : "Your local IPs are:",
"network-ip-notification" : "Your Active internet(network) IP is:",
"no-ip-notification" : "To know your network ip use --determine-ip, to know more use --help",
"no-ip-notification" : "To know your network ip by connecting to syncplay.pl use --determine-ip, to know more use --help",
"connection-error-notification" : "Could not connect to syncplay.pl",
# Server arguments
"server-argument-description" : 'Solution to synchronize playback of multiple MPlayer and MPC-HC instances over the network. Server instance',
@ -717,10 +717,14 @@ ru = {
"new-syncplay-available-motd-message" : u"<NOTICE> Вы используете Syncplay версии {}. Доступна более новая версия на http://syncplay.pl/ . </NOTICE>", # ClientVersion
# Server notifications
"welcome-server-notification" : u"Добро пожаловать на сервер Syncplay версии {0}", # version
"welcome-server-notification" :"" ,#TODO
"client-connected-room-server-notification" : u"{0}({2}) подключился(-лась) к комнате '{1}'", # username, host, room
"client-left-server-notification" : u"{0} покинул(а) сервер", # name
"no-salt-notification" : u"ВНИМАНИЕ: Чтобы сгенерированные сервером пароли операторов комнат работали после перезагрузки сервера, необходимо указать следующий аргумент командной строки при запуске сервера Syncplay: --salt {}", #Salt
"local-ip-notification": "" ,#TODO
"network-ip-notification" : "" ,#TODO,
"no-ip-notification" : "",#TODO
"connection-error-notification" : "",#TODO
# Server arguments
"server-argument-description" : u'Решение для синхронного воспроизведения в VLC, MPlayer или MPC-HC через Интернет. Серверная часть',
@ -733,7 +737,7 @@ ru = {
"server-motd-argument" : u"путь к файлу, из которого будет извлекаться MOTD-сообщение",
"server-messed-up-motd-unescaped-placeholders" : u"MOTD-сообщение содержит неэкранированные спец.символы. Все знаки $ должны быть продублированы ($$).",
"server-messed-up-motd-too-long" : u"MOTD-сообщение слишком длинное: максимальная длина - {} символ(ов), текущая длина - {} символ(ов).",
"server-determine-ip-argument" : "", #TODO
# Server errors
"unknown-command-server-error" : u"Неизвестная команда: {}", # message
"not-json-server-error" : u"Не является закодированной json-строкой: {}", # message
@ -1087,11 +1091,15 @@ de = {
"new-syncplay-available-motd-message" : u"<NOTICE> Du nutzt Syncplay Version {}, aber es gibt eine neuere Version auf http://syncplay.pl</NOTICE>", # ClientVersion
# Server notifications
"welcome-server-notification" : u"Willkommen zum Syncplay-Server, v. {0}", # version
"welcome-server-notification" : "",#TODO
"client-connected-room-server-notification" : u"{0}({2}) hat den Raum '{1}' betreten", # username, host, room
"client-left-server-notification" : u"{0} hat den Server verlassen", # name
"no-salt-notification" : u"WICHTIGER HINWEIS: Damit von dem Server generierte Passwörter für geführte Räume auch nach einem Serverneustart funktionieren, starte den Server mit dem folgenden Parameter: --salt {}", #Salt
"local-ip-notification" : "",#TODO
"network-ip-notification" : "",#TODO
"no-ip-notification" : "", #TODO
"connection-error-notification" : "",#TODO
# Server arguments
"server-argument-description" : u'Anwendung, um mehrere MPlayer, MPC-HC und VLC-Instanzen über das Internet zu synchronisieren. Server',
"server-argument-epilog" : u'Wenn keine Optionen angegeben sind, werden die _config-Werte verwendet',
@ -1103,7 +1111,8 @@ de = {
"server-motd-argument": u"Pfad zur Datei, von der die Nachricht des Tages geladen wird",
"server-messed-up-motd-unescaped-placeholders": u"Die Nachricht des Tages hat unmaskierte Platzhalter. Alle $-Zeichen sollten verdoppelt werden ($$).",
"server-messed-up-motd-too-long": u"Die Nachricht des Tages ist zu lang - Maximal {} Zeichen, aktuell {}.",
"server-determine-ip-argument" : "", #TODO
# Server errors
"unknown-command-server-error" : u"Unbekannter Befehl {}", # message
"not-json-server-error" : u"Kein JSON-String {}", # message

View File

@ -144,7 +144,7 @@ def displayNetworkIP():
print(s.getsockname()[0])
s.close()
except:
print "Could not connect to syncplay.pl"
print getMessage("connection-error-notification")
def findWorkingDir():
frozen = getattr(sys, 'frozen', '')