From 351d82d208d57c629883e859030c290dc892313d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 4 Sep 2006 09:56:41 +0200 Subject: * DistUpgrade/DistUpgradeControler.py: - add the Debug::pkgDepCache::AutoInstall debug option * DistUpgrade/DistUpgradeView.py: - add missing import gettext * DistUpgrade/DistUpgradeViewGtk.py: - be more robust against gettext failure * DistUpgrade/cdromupgrade: - fix path --- DistUpgrade/DistUpgradeViewGtk.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'DistUpgrade/DistUpgradeViewGtk.py') diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index da2d12a9..c58c1fcc 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -305,8 +305,11 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp): " gtk frontend of the distUpgrade tool " def __init__(self): # FIXME: i18n must be somewhere relative do this dir - bindtextdomain("update-manager",os.path.join(os.getcwd(),"mo")) - gettext.textdomain("update-manager") + try: + bindtextdomain("update-manager",os.path.join(os.getcwd(),"mo")) + gettext.textdomain("update-manager") + except Exception, e: + logging.warning("Error setting locales (%s)" % e) icons = gtk.icon_theme_get_default() gtk.window_set_default_icon(icons.load_icon("update-manager", 32, 0)) -- cgit v1.2.3