GrampsLocale: Restore call to locale.bindtextdomain() for GtkBuilder
Apparently some Linuxes require it for GtkBuilder to find the localization files. It's not supported on Win32, though, so don't try in that case. svn: r21488
This commit is contained in:
parent
ca80adeb01
commit
38dcbbae58
@ -195,6 +195,11 @@ class GrampsLocale(object):
|
|||||||
os.environ["LANG"] = self.lang
|
os.environ["LANG"] = self.lang
|
||||||
os.environ["LANGUAGE"] = ':'.join(self.language)
|
os.environ["LANGUAGE"] = ':'.join(self.language)
|
||||||
|
|
||||||
|
# GtkBuilder uses GLib's g_dgettext wrapper, which oddly is bound
|
||||||
|
# with locale instead of gettext. Win32 doesn't support bindtextdomain.
|
||||||
|
if not win():
|
||||||
|
locale.bindtextdomain(self.localedomain, self.localedir)
|
||||||
|
|
||||||
self.initialized = True
|
self.initialized = True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user