Hopefully last fix for complete translation in Linux and Windows.
svn: r14374
This commit is contained in:
parent
8dd9c21ab3
commit
f843839c6b
@ -83,9 +83,12 @@ def setup_windows_gtk():
|
|||||||
""" function to decide if needed on windows
|
""" function to decide if needed on windows
|
||||||
This function should be called on windows instead of locale.bindtextdomain
|
This function should be called on windows instead of locale.bindtextdomain
|
||||||
"""
|
"""
|
||||||
import gtk
|
import ctypes
|
||||||
import gtk.glade
|
libintl = ctypes.cdll.intl
|
||||||
gtk.glade.bindtextdomain("gramps", LOCALEDIR)
|
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():
|
def get_localedomain():
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user