[SCM] GUI front-end for Debian Live. branch, master, updated. cf21bd50e2fee6dd87bc82657d9a18ab527ce75e
Chris Lamb
chris at chris-lamb.co.uk
Sun Aug 10 06:19:08 UTC 2008
The following commit has been merged in the master branch:
commit cf21bd50e2fee6dd87bc82657d9a18ab527ce75e
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date: Sun Aug 10 07:18:02 2008 +0100
Don't throw an exception on an invalid locale - GTK will take care of this.
Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>
diff --git a/LiveMagic/__init__.py b/LiveMagic/__init__.py
index 34d4da2..65d0f4b 100644
--- a/LiveMagic/__init__.py
+++ b/LiveMagic/__init__.py
@@ -38,7 +38,11 @@ def init_gettext():
# Fall back to /usr/share/locale
locale_dir = []
- locale.setlocale(locale.LC_ALL, '')
+ try:
+ locale.setlocale(locale.LC_ALL, '')
+ except locale.Error:
+ pass
+
for module in gettext, gtk.glade:
module.bindtextdomain('live-magic', *locale_dir)
module.textdomain('live-magic')
--
GUI front-end for Debian Live.
More information about the debian-live-changes
mailing list