Merge pull request #42 from Konubinix/master

Add initial message indicating why the Gui did not launch
This commit is contained in:
Etoh 2014-07-29 13:55:26 +01:00
commit 9fdb8d080d
2 changed files with 2 additions and 0 deletions

1
syncplay/messages.py Normal file → Executable file
View File

@ -76,6 +76,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. To use them, please install PySide.",
"arguments-missing-error" : "Some necessary arguments are missing, refer to --help",

1
syncplay/ui/ConfigurationGetter.py Normal file → Executable file
View File

@ -11,6 +11,7 @@ try:
from PySide import QtGui # @UnresolvedImport
from PySide.QtCore import QCoreApplication
except ImportError:
print getMessage("unable-import-gui-error")
GuiConfiguration = None
class InvalidConfigValue(Exception):