Force gettext init for glade files (Emmanuel Lacour)

This commit is contained in:
Cole Robinson 2009-05-11 12:19:24 -04:00
parent 62de590fbb
commit 58bc9af45d
2 changed files with 7 additions and 0 deletions

View File

@ -56,6 +56,7 @@ Further patches have been submitted by:
Vitaly Mayatskikh <vmayatsk-at-redhat-dot-com>
Gerrit Slomma <roadrunner_gs-at-web-dot-de>
Dan Walsh <dwalsh-at-redhat-dot-com>
Emmanuel Lacour <elacour-at-home-dn-dot-net>
<...send a patch & get your name here...>

View File

@ -60,6 +60,11 @@ def setup_i18n():
gettext.install(gettext_app, gettext_dir)
gettext.bindtextdomain(gettext_app, gettext_dir)
def setup_glade_i18n():
import gtk.glade
gtk.glade.bindtextdomain(gettext_app, gettext_dir)
gtk.glade.textdomain(gettext_app)
def setup_pypath():
global glade_dir, icon_dir, data_dir
# Hacks for find assets in local dir for dev purposes
@ -285,6 +290,7 @@ def main():
warnings.resetwarnings()
gtk.gdk.threads_init()
setup_glade_i18n()
import dbus
import dbus.glib