* src/gramps.py: handle python versions with broken setlocale()
* src/po/Makefile.am: don't pass -v to msgfmt svn: r2351
This commit is contained in:
@ -54,7 +54,11 @@ if os.environ.has_key("GRAMPSI18N"):
|
||||
else:
|
||||
loc = "/usr/share/locale"
|
||||
|
||||
locale.setlocale(locale.LC_ALL,'')
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL,'')
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
gettext.bindtextdomain("gramps",loc)
|
||||
gtk.glade.bindtextdomain("gramps",loc)
|
||||
|
||||
|
Reference in New Issue
Block a user