diff options
Diffstat (limited to 'po/Makefile.in')
-rw-r--r-- | po/Makefile.in | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/po/Makefile.in b/po/Makefile.in index ff8ca90..d3c3932 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -31,10 +31,10 @@ MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ CC = @CC@ GENCAT = @GENCAT@ -GMSGFMT = PATH=../src:$$PATH @GMSGFMT@ +GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ -XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ -MSGMERGE = PATH=../src:$$PATH msgmerge +XGETTEXT = @XGETTEXT@ +MSGMERGE = msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ @@ -63,25 +63,37 @@ INSTOBJEXT = @INSTOBJEXT@ $(COMPILE) $< .po.pox: - $(MAKE) $(PACKAGE).pot - $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox + if test "${MSGMERGE}" != "no"; then \ + $(MAKE) $(PACKAGE).pot; \ + $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox; \ + fi .po.mo: - $(MSGFMT) -o $@ $< + @if test "${MSGFMT}" != "no"; then \ + echo "creating $@" ; \ + $(MSGFMT) -o $@ $< ; \ + fi .po.gmo: - file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ - && rm -f $$file && $(GMSGFMT) -o $$file $< + @if test "${GMSGFMT}" != "no"; then \ + echo "creating $@" ; \ + file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ + && rm -f $$file && $(GMSGFMT) -o $$file $< ; \ + fi .po.cat: - sed -f ../intl/po2msg.sed < $< > $*.msg \ - && rm -f $@ && $(GENCAT) $@ $*.msg + if test "${GENCAT}" != "no"; then \ + echo "creating $@" ; \ + sed -f ../intl/po2msg.sed < $< > $*.msg \ + && rm -f $@ && $(GENCAT) $@ $*.msg; \ + fi all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: + @echo "*** Nationalziation is disabled! ***" $(srcdir)/$(PACKAGE).pot: $(srcdir)/xsane-pot.sed $(srcdir)/sane-text.h $(POTFILES) cat $(POTFILES) | \ @@ -201,6 +213,16 @@ update-po: Makefile fi; \ done +utf8: + for LNG in *.po ; do \ + FORMAT=`grep charset $$LNG | sed -e '{ s/Content-Type: text\/plain; charset=//g ; s/\\\n// ; s/\"//g ; }'` ;\ + echo recoding $$LNG\($$FORMAT\) to UTF-8/$$LNG\(UTF-8\);\ + COMMAND="s/"$$FORMAT"/UTF-8/g" ;\ + cat $$LNG | sed -e $$COMMAND >UTF-8/$$LNG ;\ + recode $$FORMAT..UTF-8 UTF-8/$$LNG ;\ + done + + Makefile: Makefile.in ../config.status cd .. \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ |