Merge pull request #42 from Konubinix/master
Add initial message indicating why the Gui did not launch
This commit is contained in:
commit
9fdb8d080d
1
syncplay/messages.py
Normal file → Executable file
1
syncplay/messages.py
Normal file → Executable file
@ -76,6 +76,7 @@ en = {
|
|||||||
"hostname-empty-error" : "Hostname can't be empty",
|
"hostname-empty-error" : "Hostname can't be empty",
|
||||||
"empty-error" : "{} can't be empty", # Configuration
|
"empty-error" : "{} can't be empty", # Configuration
|
||||||
"media-player-error": "Media player error: \"{}\"", # Error line
|
"media-player-error": "Media player error: \"{}\"", # Error line
|
||||||
|
"unable-import-gui-error": "Could not import Gui libraries. To use them, please install PySide.",
|
||||||
|
|
||||||
"arguments-missing-error" : "Some necessary arguments are missing, refer to --help",
|
"arguments-missing-error" : "Some necessary arguments are missing, refer to --help",
|
||||||
|
|
||||||
|
|||||||
1
syncplay/ui/ConfigurationGetter.py
Normal file → Executable file
1
syncplay/ui/ConfigurationGetter.py
Normal file → Executable file
@ -11,6 +11,7 @@ try:
|
|||||||
from PySide import QtGui # @UnresolvedImport
|
from PySide import QtGui # @UnresolvedImport
|
||||||
from PySide.QtCore import QCoreApplication
|
from PySide.QtCore import QCoreApplication
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
print getMessage("unable-import-gui-error")
|
||||||
GuiConfiguration = None
|
GuiConfiguration = None
|
||||||
|
|
||||||
class InvalidConfigValue(Exception):
|
class InvalidConfigValue(Exception):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user