diff options
-rw-r--r-- | abrt.spec | 2 | ||||
-rw-r--r-- | src/Gui/exception.py | 10 | ||||
-rw-r--r-- | src/Hooks/abrt_exception_handler.py.in | 2 |
3 files changed, 9 insertions, 5 deletions
@@ -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 fa9a3048..739b2c83 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 a5a442ea..b9e589c2 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. |