summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-04-14 17:30:56 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-04-14 17:30:56 +0200
commitee5b61c13fbfc2a42e38c3f980fb99d437c36d98 (patch)
tree6a503242a51c8294b3793ac7e226b083d07898ac /portato
parent3114e381db0f7f1f793f663975f18fb67bcad47c (diff)
downloadportato-ee5b61c13fbfc2a42e38c3f980fb99d437c36d98.tar.gz
portato-ee5b61c13fbfc2a42e38c3f980fb99d437c36d98.tar.bz2
portato-ee5b61c13fbfc2a42e38c3f980fb99d437c36d98.zip
For some reason i18n strings were not displayed in threads sometimes
Diffstat (limited to '')
-rw-r--r--portato/gui/exception_handling.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py
index d8ff7ba..6bda133 100644
--- a/portato/gui/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -22,8 +22,14 @@ from StringIO import StringIO
from ..helper import debug, error
from .dialogs import file_chooser_dialog, io_ex_dialog
+# for the i18n
+from ..constants import LOCALE_DIR, APP
+import gettext
+
class GtkThread (Thread):
def run(self):
+ # for some reason, I have to install this for each thread ...
+ gettext.install(APP, LOCALE_DIR, unicode = True)
try:
Thread.run(self)
except SystemExit: