Step towards fix of translation in Windows.
svn: r14268
This commit is contained in:
@@ -34,7 +34,7 @@ import gettext
|
||||
import sys
|
||||
import os
|
||||
import locale
|
||||
|
||||
import ctypes
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# gramps modules
|
||||
@@ -83,10 +83,10 @@ def setup_windows_gtk():
|
||||
""" function to decide if needed on windows
|
||||
This function should be called on windows instead of locale.bindtextdomain
|
||||
"""
|
||||
from Utils import win
|
||||
from constfunc import win
|
||||
if win():
|
||||
try:
|
||||
libintl = ctypes.cdll.LoadLibrary("C:\\GTK\\gtk-2.18.5\\bin\\intl.dll")
|
||||
libintl = ctypes.cdll.LoadLibrary("intl.dll")
|
||||
libintl.bindtextdomain(LOCALEDOMAIN, LOCALEDIR)
|
||||
except:
|
||||
print "Error Loading translations into gtk.builder files"
|
||||
|
||||
Reference in New Issue
Block a user