Hopefully last fix for complete translation in Linux and Windows.

svn: r14374
This commit is contained in:
Peter Landgren 2010-02-14 21:06:31 +00:00
parent 8dd9c21ab3
commit f843839c6b

View File

@ -83,9 +83,12 @@ def setup_windows_gtk():
""" function to decide if needed on windows
This function should be called on windows instead of locale.bindtextdomain
"""
import gtk
import gtk.glade
gtk.glade.bindtextdomain("gramps", LOCALEDIR)
import ctypes
libintl = ctypes.cdll.intl
libintl.bindtextdomain(LOCALEDOMAIN, str(LOCALEDIR))
libintl.textdomain(LOCALEDOMAIN)
libintl.bind_textdomain_codeset(LOCALEDOMAIN, "UTF-8")
libintl.gettext.restype = ctypes.c_char_p
def get_localedomain():
"""