From ee5b61c13fbfc2a42e38c3f980fb99d437c36d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 14 Apr 2008 17:30:56 +0200 Subject: For some reason i18n strings were not displayed in threads sometimes --- portato/gui/exception_handling.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'portato/gui/exception_handling.py') 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: -- cgit v1.2.3