Translation now works in Windows with gtk.glade method.
svn: r14278
This commit is contained in:
parent
5ef4112868
commit
beae7d6a01
@ -34,7 +34,7 @@ import gettext
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import locale
|
import locale
|
||||||
import ctypes
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# gramps modules
|
# gramps modules
|
||||||
@ -83,13 +83,9 @@ 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
|
||||||
"""
|
"""
|
||||||
from constfunc import win
|
import gtk
|
||||||
if win():
|
import gtk.glade
|
||||||
try:
|
gtk.glade.bindtextdomain("gramps", LOCALEDIR)
|
||||||
libintl = ctypes.cdll.LoadLibrary("intl.dll")
|
|
||||||
libintl.bindtextdomain(LOCALEDOMAIN, LOCALEDIR)
|
|
||||||
except:
|
|
||||||
print "Error Loading translations into gtk.builder files"
|
|
||||||
|
|
||||||
def get_localedomain():
|
def get_localedomain():
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user