[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 1/6] Stop using rhpl.translate
- From: Jeremy Katz <katzj redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 1/6] Stop using rhpl.translate
- Date: Tue, 30 Jun 2009 16:08:39 -0400
Use python's gettext module instead of rhpl.translate
---
booty/bootloaderInfo.py | 5 ++++-
iutil.py | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 8e09c50..0cee1f6 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -24,9 +24,12 @@ import string
import struct
from copy import copy
+import gettext
+_ = lambda x: gettext.ldgettext("anaconda", x)
+N_ = lambda x: x
+
from lilo import LiloConfigFile
import rhpl
-from rhpl.translate import _, N_
from flags import flags
import iutil
diff --git a/iutil.py b/iutil.py
index ba1d0b4..f80d4a5 100644
--- a/iutil.py
+++ b/iutil.py
@@ -31,9 +31,11 @@ import warnings
import subprocess
from flags import flags
from constants import *
-from rhpl.translate import _
import re
+import gettext
+_ = lambda x: gettext.ldgettext("anaconda", x)
+
import logging
log = logging.getLogger("anaconda")
--
1.6.1
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]