summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
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))