* 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 8b61dbf4fc
commit 8ead9aba9d
2 changed files with 7 additions and 3 deletions

View File

@ -54,7 +54,11 @@ if os.environ.has_key("GRAMPSI18N"):
else: else:
loc = "/usr/share/locale" loc = "/usr/share/locale"
locale.setlocale(locale.LC_ALL,'') try:
locale.setlocale(locale.LC_ALL,'')
except ValueError:
pass
gettext.bindtextdomain("gramps",loc) gettext.bindtextdomain("gramps",loc)
gtk.glade.bindtextdomain("gramps",loc) gtk.glade.bindtextdomain("gramps",loc)

View File

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