From beae7d6a0104b2a2f41c994a167cc8eb214f8cd0 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Mon, 8 Feb 2010 14:56:30 +0000 Subject: [PATCH] Translation now works in Windows with gtk.glade method. svn: r14278 --- src/TransUtils.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/TransUtils.py b/src/TransUtils.py index 1713d0d1b..799e42f8b 100644 --- a/src/TransUtils.py +++ b/src/TransUtils.py @@ -34,7 +34,7 @@ import gettext import sys import os import locale -import ctypes + #------------------------------------------------------------------------- # # gramps modules @@ -83,13 +83,9 @@ def setup_windows_gtk(): """ function to decide if needed on windows This function should be called on windows instead of locale.bindtextdomain """ - from constfunc import win - if win(): - try: - libintl = ctypes.cdll.LoadLibrary("intl.dll") - libintl.bindtextdomain(LOCALEDOMAIN, LOCALEDIR) - except: - print "Error Loading translations into gtk.builder files" + import gtk + import gtk.glade + gtk.glade.bindtextdomain("gramps", LOCALEDIR) def get_localedomain(): """