From accad97fc6fc07d94befe2754b8315f6ae2d01da Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 20 Jul 2009 17:03:10 +0200 Subject: Removed dependency on rhpl --- abrt.spec | 2 +- src/Gui/exception.py | 10 ++++++++-- src/Hooks/abrt_exception_handler.py.in | 2 -- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/abrt.spec b/abrt.spec index 1c517fc..f65a9de 100644 --- a/abrt.spec +++ b/abrt.spec @@ -57,7 +57,7 @@ daemon. Summary: %{name}'s gui Group: User Interface/Desktops Requires: %{name} = %{version}-%{release} -Requires: dbus-python, rhpl, pygtk2, pygtk2-libglade +Requires: dbus-python, pygtk2, pygtk2-libglade %description gui GTK+ wizard for convenient bug reporting. diff --git a/src/Gui/exception.py b/src/Gui/exception.py index fa9a304..739b2c8 100644 --- a/src/Gui/exception.py +++ b/src/Gui/exception.py @@ -41,10 +41,16 @@ def exception_function(): raise """ -import sys -from rhpl.translate import _ +PROGNAME = "abrt" +import sys +import gettext +import locale +locale.setlocale(locale.LC_ALL, "") +gettext.textdomain(PROGNAME) +gettext.bind_textdomain_codeset(PROGNAME, locale.nl_langinfo(locale.CODESET)) +_ = gettext.lgettext __DUMPHASH = {} # FIXME: do length limits on obj dumps. diff --git a/src/Hooks/abrt_exception_handler.py.in b/src/Hooks/abrt_exception_handler.py.in index a5a442e..b9e589c 100644 --- a/src/Hooks/abrt_exception_handler.py.in +++ b/src/Hooks/abrt_exception_handler.py.in @@ -48,8 +48,6 @@ import syslog # abrt lib for saving debugdumps import ABRTUtils -from rhpl.translate import _ - __DUMPHASH = {} # FIXME: do length limits on obj dumps. -- cgit