mirror of https://github.com/Syncplay/syncplay
Provide more information on PySide load failure
This commit is contained in:
parent
d5eb213a59
commit
899081ca6e
|
@ -133,7 +133,7 @@ de = {
|
|||
"hostname-empty-error": "Hostname darf nicht leer sein",
|
||||
"empty-error": "{} darf nicht leer sein", # Configuration
|
||||
"media-player-error": "Player-Fehler: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Konnte die GUI-Bibliotheken nicht importieren. PySide muss installiert sein, damit die grafische Oberfläche funktioniert.",
|
||||
"unable-import-gui-error": "Konnte die GUI-Bibliotheken nicht importieren. PySide muss installiert sein, damit die grafische Oberfläche funktioniert. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Twisted konnte nicht importiert werden. Bitte installiere Twisted v16.4.0 oder höher",
|
||||
|
||||
"arguments-missing-error": "Notwendige Argumente fehlen, siehe --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ en = {
|
|||
"hostname-empty-error": "Hostname can't be empty",
|
||||
"empty-error": "{} can't be empty", # Configuration
|
||||
"media-player-error": "Media player error: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Could not import GUI libraries. If you do not have PySide installed then you will need to install it for the GUI to work.",
|
||||
"unable-import-gui-error": "Could not import GUI libraries. You need to have the correct version of PySide installed for the GUI to work. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.",
|
||||
"unable-import-twisted-error": "Could not import Twisted. Please install Twisted v16.4.0 or later.",
|
||||
|
||||
"arguments-missing-error": "Some necessary arguments are missing, refer to --help",
|
||||
|
|
|
@ -136,7 +136,7 @@ eo = {
|
|||
"hostname-empty-error": "Nomo de gastiga komputilo ne povas esti malplena",
|
||||
"empty-error": "{} ne povas esti malplena", # Configuration
|
||||
"media-player-error": "Eraro de vidaŭdaĵa ludilo: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Ne povis enporti fasadajn bibliotekojn. Se PySide ne estas instalita, vi devos instali ĝin, por ke la fasado funkciu.",
|
||||
"unable-import-gui-error": "Ne povis enporti fasadajn bibliotekojn. Se PySide ne estas instalita, vi devos instali ĝin, por ke la fasado funkciu. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Ne povis enporti la bibliotekon Twisted. Bonvolu instali version 16.4.0 de Twisted, aŭ pli altan.",
|
||||
|
||||
"arguments-missing-error": "Iuj bezonataj parametroj mankas; vidu al --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ es = {
|
|||
"hostname-empty-error": "El nombre del host no puede ser vacío",
|
||||
"empty-error": "{} no puede ser vacío", # Configuration
|
||||
"media-player-error": "Error del reproductor multimedia: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "No se lograron importar las librerías GUI. Si no tienes instalado PySide, entonces tendrás que instalarlo para que funcione el GUI.",
|
||||
"unable-import-gui-error": "No se lograron importar las librerías GUI. Si no tienes instalado PySide, entonces tendrás que instalarlo para que funcione el GUI. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "No se logró importar Twisted. Por favor instala Twisted v16.4.0 o posterior.",
|
||||
|
||||
"arguments-missing-error": "Están faltando algunos argumentos necesarios. Por favor revisa --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ fi = {
|
|||
"hostname-empty-error": "Palvelinnimi ei voi olla tyhjä",
|
||||
"empty-error": "{} ei voi jättää tyhjäksi", # Configuration
|
||||
"media-player-error": "Mediasoitin kohtasi virheen: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Käyttöliittymäkirjastoja ei saatu tuotua. Mikäli sinulla ei ole PySide asennettuna, tulee sinun asentaa se jotta käyttöliittymä toimisi.",
|
||||
"unable-import-gui-error": "Käyttöliittymäkirjastoja ei saatu tuotua. Mikäli sinulla ei ole PySide asennettuna, tulee sinun asentaa se jotta käyttöliittymä toimisi. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Twisted:iä ei onnistuttu tuomaan. Asenna Twisted v16.4.0 tai myöhäisempi.",
|
||||
|
||||
"arguments-missing-error": "Joitakin vipuja uupuu, katso apua --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ fr = {
|
|||
"hostname-empty-error": "Le nom d'hôte ne peut pas être vide",
|
||||
"empty-error": "{} ne peut pas être vide", # Configuration
|
||||
"media-player-error": "Media player error: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Impossible d'importer les bibliothèques GUI. Si vous n'avez pas installé PySide, vous devrez l'installer pour que l'interface graphique fonctionne.",
|
||||
"unable-import-gui-error": "Impossible d'importer les bibliothèques GUI. Si vous n'avez pas installé PySide, vous devrez l'installer pour que l'interface graphique fonctionne. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Impossible d'importer Twisted. Veuillez installer Twisted v16.4.0 ou une version ultérieure.",
|
||||
|
||||
"arguments-missing-error": "Certains arguments nécessaires sont manquants, reportez-vous à --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ it = {
|
|||
"hostname-empty-error": "Il campo hostname non può essere vuoto",
|
||||
"empty-error": "Il campo {} non può esssere vuoto", # Configuration
|
||||
"media-player-error": "Errore media player: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Non è possibile importare le librerie di interfaccia grafica. Hai bisogno di PySide per poter utilizzare l'interfaccia grafica.",
|
||||
"unable-import-gui-error": "Non è possibile importare le librerie di interfaccia grafica. Hai bisogno di PySide per poter utilizzare l'interfaccia grafica. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Non è possibile importare Twisted. Si prega di installare Twisted v16.4.0 o superiore.",
|
||||
|
||||
"arguments-missing-error": "Alcuni argomenti obbligatori non sono stati trovati. Fai riferimento a --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ ko = {
|
|||
"hostname-empty-error": "호스트이름은 비워둘 수 없습니다",
|
||||
"empty-error": "{}은(는) 비워 둘 수 없습니다", # Configuration
|
||||
"media-player-error": "미디어 플레이어 오류: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "GUI 라이브러리를 가져올 수 없습니다. PySide가 설치되어 있지 않은 경우 GUI가 작동하려면 설치해야 합니다.",
|
||||
"unable-import-gui-error": "GUI 라이브러리를 가져올 수 없습니다. PySide가 설치되어 있지 않은 경우 GUI가 작동하려면 설치해야 합니다. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Twisted를 가져올 수 없습니다. Twisted v16.4.0 이상을 설치하세요.",
|
||||
|
||||
"arguments-missing-error": "일부 필요한 인수가 누락되었습니다. --help를 참조하세요.",
|
||||
|
|
|
@ -134,7 +134,7 @@ pt_BR = {
|
|||
"hostname-empty-error": "O endereço do servidor não pode estar vazio",
|
||||
"empty-error": "{} não pode estar vazio", # Configuration
|
||||
"media-player-error": "Erro do reprodutor de mídia: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Não foi possível importar bibliotecas da GUI. Se você não possuir o PySide instalado, instale-o para que a GUI funcione.",
|
||||
"unable-import-gui-error": "Não foi possível importar bibliotecas da GUI. Se você não possuir o PySide instalado, instale-o para que a GUI funcione. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Não foi possível importar o Twisted. Por favor, instale o Twisted v16.4.0 ou superior.",
|
||||
|
||||
"arguments-missing-error": "Alguns argumentos necessários estão faltando, por favor reveja --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ pt_PT = {
|
|||
"hostname-empty-error": "O endereço do servidor não pode ser vazio",
|
||||
"empty-error": "{} não pode ser vazio", # Configuration
|
||||
"media-player-error": "Erro do reprodutor de mídia: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Não foi possível importar bibliotecas da GUI. Se você não possuir o PySide instalado, instale-o para que a GUI funcione.",
|
||||
"unable-import-gui-error": "Não foi possível importar bibliotecas da GUI. Se você não possuir o PySide instalado, instale-o para que a GUI funcione. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Não foi possível importar o Twisted. Por favor, instale o Twisted v16.4.0 ou superior.",
|
||||
|
||||
"arguments-missing-error": "Alguns argumentos necessários estão faltando, por favor reveja --help",
|
||||
|
|
|
@ -132,7 +132,7 @@ ru = {
|
|||
"hostname-empty-error": "Имя пользователя не может быть пустым.",
|
||||
"empty-error": "{} не может быть пустым.", # Configuration
|
||||
"media-player-error": "Ошибка проигрывателя: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "Невозможно импортировать библиотеки графического интерфейса. Необходимо установить PySide, иначе графический интерфейс не будет работать.",
|
||||
"unable-import-gui-error": "Невозможно импортировать библиотеки графического интерфейса. Необходимо установить PySide, иначе графический интерфейс не будет работать. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Невозможно импортировать Twisted. Установите Twisted 16.4.0 или более позднюю версию.",
|
||||
|
||||
"arguments-missing-error": "Некоторые необходимые аргументы отсутствуют, обратитесь к --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ tr = {
|
|||
"hostname-empty-error": "Ana bilgisayar adı boş olamaz",
|
||||
"empty-error": "{} boş olamaz", # Configuration
|
||||
"media-player-error": "Medaya oynatıcısı hatası: \"{}\"", # Error line
|
||||
"unable-import-gui-error": "GUI kitaplıkları içe aktarılamadı. PySide kurulu değilse, GUI'nin çalışması için kurmanız gerekecektir.",
|
||||
"unable-import-gui-error": "GUI kitaplıkları içe aktarılamadı. PySide kurulu değilse, GUI'nin çalışması için kurmanız gerekecektir. If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "Twisted içe aktarılamadı. Lütfen Twisted v16.4.0 veya sonraki sürümünü yükleyin.",
|
||||
|
||||
"arguments-missing-error": "Bazı gerekli argümanlar eksik, bakınız --help",
|
||||
|
|
|
@ -133,7 +133,7 @@ zh_CN = {
|
|||
"hostname-empty-error": "主机名不能是空的",
|
||||
"empty-error": "{}不能是空的", # Configuration
|
||||
"media-player-error": "媒体播放器错误:\"{}\"", # Error line
|
||||
"unable-import-gui-error": "无法导入GUI库。如果你没有安装PySide,GUI则无法工作,请安装PySide。",
|
||||
"unable-import-gui-error": "无法导入GUI库。如果你没有安装PySide,GUI则无法工作,请安装PySide。 If you want to run Syncplay in console mode then run it with the --no-gui command line switch. See https://syncplay.pl/guide/ for more details.", # TODO: Translate end of message and update second sentence to be a translation of "You need to have the correct version of PySide installed for the GUI to work."
|
||||
"unable-import-twisted-error": "无法导入Twisted。请安装Twisted v16.4.0或更高版本。",
|
||||
|
||||
"arguments-missing-error": "缺少一些必要的参数,使用--help命令查看详细信息",
|
||||
|
|
|
@ -520,7 +520,7 @@ class ConfigurationGetter(object):
|
|||
from syncplay.vendor.Qt.QtCore import QCoreApplication
|
||||
from syncplay.vendor import qt5reactor
|
||||
if not (IsPySide6 or IsPySide2 or IsPySide):
|
||||
raise ImportError
|
||||
raise ImportError("Failed to identify compatible version of PySide.")
|
||||
if QCoreApplication.instance() is None:
|
||||
self.app = QtWidgets.QApplication(sys.argv)
|
||||
self.app.setDesktopFileName("syncplay")
|
||||
|
@ -537,13 +537,14 @@ class ConfigurationGetter(object):
|
|||
if isMacOS():
|
||||
import appnope
|
||||
appnope.nope()
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
try:
|
||||
from twisted.trial import unittest
|
||||
except Exception as e:
|
||||
print(e)
|
||||
except Exception as ee:
|
||||
print(ee)
|
||||
print(getMessage("unable-import-twisted-error"))
|
||||
sys.exit()
|
||||
print(e)
|
||||
print(getMessage("unable-import-gui-error"))
|
||||
self._config['noGui'] = True
|
||||
if self._config['file'] and self._config['file'][:2] == "--":
|
||||
|
|
Loading…
Reference in New Issue