From 04b894061f100b286a95e5a676f253101c9c87c1 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 9 Mar 2010 13:59:44 +0100 Subject: GUI: translations work again --- src/Gui/abrt_utils.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/Gui') diff --git a/src/Gui/abrt_utils.py b/src/Gui/abrt_utils.py index 239fd841..701d4776 100644 --- a/src/Gui/abrt_utils.py +++ b/src/Gui/abrt_utils.py @@ -1,6 +1,7 @@ import sys -PROGNAME = "abrt" +GETTEXT_PROGNAME = "abrt" +PROGNAME = "abrt-gui" g_verbose = 0 import locale @@ -19,11 +20,11 @@ def init_logging(progname, v): import os os.environ['LC_ALL'] = 'C' locale.setlocale(locale.LC_ALL, "") - gettext.bind_textdomain_codeset(PROGNAME, locale.nl_langinfo(locale.CODESET)) - gettext.bindtextdomain(PROGNAME, '/usr/share/locale') - gtk.glade.bindtextdomain(PROGNAME, '/usr/share/locale') - gtk.glade.textdomain(PROGNAME) - gettext.textdomain(PROGNAME) + gettext.bind_textdomain_codeset(GETTEXT_PROGNAME, locale.nl_langinfo(locale.CODESET)) + gettext.bindtextdomain(GETTEXT_PROGNAME, '/usr/share/locale') + gtk.glade.bindtextdomain(GETTEXT_PROGNAME, '/usr/share/locale') + gtk.glade.textdomain(GETTEXT_PROGNAME) + gettext.textdomain(GETTEXT_PROGNAME) def get_verbose_level(): # Just importing g_verbose from another module doesn't work (why!?), -- cgit