* 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:
Don Allingham 2003-11-19 17:20:05 +00:00
parent 02ddd38c12
commit 02cded3948
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -21,11 +21,11 @@ SUFFIXES = .po .mo
.po.mo:
$(MSGCONV) --to-code=UTF-8 $< -o temp.po
$(MSGFMT) -v temp.po -o $@
$(MSGFMT) temp.po -o $@
rm temp.po
zh_CN.mo: $(top_srcdir)/src/po/zh_CN.po
$(ICONV) -f GB2312 -t UTF-8 $< > temp.po
$(MSGFMT) -v temp.po -o $@
$(MSGFMT) temp.po -o $@
rm temp.po