summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Gui/exception.py10
-rw-r--r--src/Hooks/abrt_exception_handler.py.in2
2 files changed, 8 insertions, 4 deletions
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.