mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-29 04:25:27 +03:00
Force gettext init for glade files (Emmanuel Lacour)
This commit is contained in:
parent
62de590fbb
commit
58bc9af45d
1
AUTHORS
1
AUTHORS
@ -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...>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user