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 --- src/Gui/exception.py | 10 ++++++++-- src/Hooks/abrt_exception_handler.py.in | 2 -- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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