summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-04 09:56:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-04 09:56:41 +0200
commit351d82d208d57c629883e859030c290dc892313d (patch)
treed60e49178bc1635a20b766ff82af6be3064a3d54 /DistUpgrade/DistUpgradeViewGtk.py
parent501b2b01efb6fe2f3241510416222ae0f1f8da84 (diff)
downloadpython-apt-351d82d208d57c629883e859030c290dc892313d.tar.gz
* 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
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py7
1 files changed, 5 insertions, 2 deletions
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))