summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-04 19:38:10 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-04 19:38:10 +0100
commit79d32ba04cf44b00e2e873d272127bb62dd57147 (patch)
tree95ddd513fa0eb24a4dee1ef420b1ef198bb943e2 /pyLoadGui.py
parentreadded new dlc stuff (diff)
downloadpyload-79d32ba04cf44b00e2e873d272127bb62dd57147.tar.xz
some l18n fixes
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 068ee667e..59db137c4 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -19,25 +19,24 @@
@version: v0.3
"""
+import gettext
+from os.path import basename
+from os.path import dirname
+from os.path import join
+import re
import sys
-
-from time import sleep, time
+from time import sleep
+from uuid import uuid4 as uuid
from PyQt4.QtCore import *
from PyQt4.QtGui import *
-
-from uuid import uuid4 as uuid
-import re
-import gettext
-from os.path import basename, dirname, join
-
+from module.gui.Collector import *
from module.gui.ConnectionManager import *
-from module.gui.connector import *
from module.gui.MainWindow import *
from module.gui.PWInputWindow import *
from module.gui.Queue import *
-from module.gui.Collector import *
from module.gui.XMLParser import *
+from module.gui.connector import *
class main(QObject):
def __init__(self):
@@ -54,15 +53,14 @@ class main(QObject):
"""
self.parser = XMLParser("module/config/gui.xml", "module/config/gui_default.xml")
langNode = self.parser.xml.elementsByTagName("language").item(0).toElement()
- translation = gettext.translation("pyLoad", join(dirname(__file__), "locale"), languages=[str(langNode.text())])
- translation.install(unicode=True)
+ translation = gettext.translation("pyLoadGui", join(dirname(__file__), "locale"), languages=[str(langNode.text())])
+ translation.install(unicode=False if sys.getdefaultencoding() == "ascii" else True)
self.mainWindow = MainWindow()
self.pwWindow = PWInputWindow()
self.connWindow = ConnectionManager()
self.connector = connector()
self.mainloop = self.Loop(self)
self.connectSignals()
-
self.checkClipboard = False
default = self.refreshConnections()
self.connData = None