summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-19 00:34:17 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-19 00:34:17 +0100
commitdf87ac431080518039d1fb3943b06ec80677c2b7 (patch)
tree5487a26615580b953cbb5199e1b82ccc2568f0df /portato/gui/windows
parente1b6dc981399e3149bc57e62af257969899cb4e4 (diff)
downloadportato-df87ac431080518039d1fb3943b06ec80677c2b7.tar.gz
portato-df87ac431080518039d1fb3943b06ec80677c2b7.tar.bz2
portato-df87ac431080518039d1fb3943b06ec80677c2b7.zip
Make translation work correctly
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/basic.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/portato/gui/windows/basic.py b/portato/gui/windows/basic.py
index a4f8236..f631376 100644
--- a/portato/gui/windows/basic.py
+++ b/portato/gui/windows/basic.py
@@ -22,6 +22,16 @@ import os.path
from ...constants import TEMPLATE_DIR, APP, LOCALE_DIR
from ...helper import error
+# for the GtkBuilder to translate correctly :)
+import ctypes
+try:
+ getlib = ctypes.cdll.LoadLibrary("libgettextlib.s")
+except OSError:
+ error("'libgettextlib.so' cannot be loaded. Might be, that there are no translations available in the GUI.")
+else:
+ getlib.textdomain(APP)
+ getlib.bindtextdomain(APP, LOCALE_DIR)
+
class WrappedTree (object):
__slots__ = ("klass", "tree", "get_widget", "get_ui")
def __init__ (self, klass, tree):