From 6e86c4a4722c6d0f9395d967092112934bc43b57 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 20 Feb 2003 23:33:49 +0000 Subject: use perl_checker rather than fake_c to generate pot, seems like fake_c is missing some strings since some time :( i don't msgmerge from the pot file of rpmdrake for 9.0 because it seems to make some rightful translations fuzzy, and for some translations such as de.po who kept the missing strings as "other", it's worse, so translators should open the new po, try msgmerge by hand with the po from the SRPM of the 9.0 and see if it's better for them.. much sorry for all this additional work :( --- grpmi/po/Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'grpmi/po/Makefile') diff --git a/grpmi/po/Makefile b/grpmi/po/Makefile index f4245281..5acdf36a 100644 --- a/grpmi/po/Makefile +++ b/grpmi/po/Makefile @@ -6,7 +6,6 @@ PL_FILES = ../grpmi.pl # C-like files to search translatable strings in CFILES = ../curl_download/curl_download.xs ../rpm/grpmi_rpm.xs -PL_CFILES = $(PL_FILES:%=%_.c) POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) @@ -20,9 +19,6 @@ all: $(PGOAL).pot $(MOFILES) %.mo: %.po msgfmt -o $@ $< -$(PL_CFILES): %_.c: % - ./fake_c.pl $< > $@ - merge: $(PGOAL).pot @for n in $(POFILES); do \ echo "Merging $$n"; \ @@ -30,11 +26,12 @@ merge: $(PGOAL).pot mv -f "$$n"t "$$n"; \ done -$(PGOAL).pot: $(PL_CFILES) $(CFILES) +$(PGOAL).pot: $(PL_FILES) $(CFILES) + perl_checker -q --generate-pot grpmi_tmp.pot $(PL_FILES) xgettext -F -n --add-comments='-PO' \ --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ - --language=C -o $@ $(PL_CFILES) $(CFILES) - @rm -rf $(PL_CFILES) + --language=C -o grpmi_tmp_c.pot $(CFILES) + msgcat grpmi_tmp_c.pot grpmi_tmp.pot > $@ install: for l in $(LANGS); do \ @@ -43,5 +40,5 @@ install: done clean: - @rm -rf *.mo $(POFILES:%=%t) $(PL_CFILES) $(PGOAL).pot + @rm -rf *.mo $(POFILES:%=%t) $(PL_CFILES) $(PGOAL).pot grpmi_tmp_c.pot grpmi_tmp.pot -- cgit v1.2.1