diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-03-09 13:59:44 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-03-09 13:59:44 +0100 |
commit | 04b894061f100b286a95e5a676f253101c9c87c1 (patch) | |
tree | ff760501d676c29af3b6c8ff2342d5049c7da529 /src/Gui | |
parent | fc8eb70f3446578a4dd632ede5c1347c0b3ece5b (diff) | |
download | abrt-04b894061f100b286a95e5a676f253101c9c87c1.tar.gz abrt-04b894061f100b286a95e5a676f253101c9c87c1.tar.xz abrt-04b894061f100b286a95e5a676f253101c9c87c1.zip |
GUI: translations work again
Diffstat (limited to 'src/Gui')
-rw-r--r-- | src/Gui/abrt_utils.py | 13 |
1 files changed, 7 insertions, 6 deletions
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!?), |