diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2003-08-19 21:05:31 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2003-08-19 21:05:31 +0000 |
commit | 78e2d8af5ef04f7d51fbb85868c7719935def763 (patch) | |
tree | d8e464a45d4da268ebe2c47c33ce20fee6a45693 /po/Makefile | |
parent | 50384eda5e9ec4154a661b31d6f5831cd7931440 (diff) | |
download | userdrake-78e2d8af5ef04f7d51fbb85868c7719935def763.tar userdrake-78e2d8af5ef04f7d51fbb85868c7719935def763.tar.gz userdrake-78e2d8af5ef04f7d51fbb85868c7719935def763.tar.bz2 userdrake-78e2d8af5ef04f7d51fbb85868c7719935def763.tar.xz userdrake-78e2d8af5ef04f7d51fbb85868c7719935def763.zip |
updated pot file; changed the way the pot is generated to use perl_checker
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/po/Makefile b/po/Makefile index da4bd31..9d7bcad 100644 --- a/po/Makefile +++ b/po/Makefile @@ -8,7 +8,6 @@ PL_FILES = $(shell cat POTFILES.in | sed 's,^,../,' ) # C-like files to search translatable strings in #CFILES = -PL_CFILES = $(PL_FILES:%=%_.c) POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) @@ -24,22 +23,20 @@ install: all done clean: - rm -f *~ *.[oas] *.mo $(GOALS) TAGS $(MOFILES) $(PL_CFILES) + rm -f *~ *.[oas] *.mo $(GOALS) TAGS $(MOFILES) %.mo: %.po msgfmt -o $@ $< -$(PGOAL).pot: POTFILES.in $(PL_CFILES) $(CFILES) - xgettext -F -n --default-domain=$(PGOAL) \ - --add-comments='-PO' \ - --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ - --keyword=I_ --keyword=i18n \ - --language=C $(PL_CFILES) $(CFILES) - mv $(PGOAL).po $@ - @rm -rf $(PL_CFILES) - -$(PL_CFILES): %_.c: % - ./fake_c.pl $< > $@ +$(PGOAL).pot: POTFILES.in $(PL_FILES) $(CFILES) + #xgettext -F -n --add-comments \ + #--keyword=_ --keyword=__ --keyword=N_ --keyword=N \ + #--keyword=gettext \ + #--language=C -o placeholder.pot $(CFILES) + touch placeholder.pot + perl_checker -q --generate-pot $(PGOAL)_tmp.pot $(PL_FILES) || rm -f $(PGOAL)_tmp.pot + [ ! -e $(PGOAL)_tmp.pot ] || msgcat --use-first placeholder.pot $(PGOAL)_tmp.pot > $@ + rm -f placeholder.pot $(PGOAL)_tmp.pot merge: $(PGOAL).pot @for n in $(POFILES); do \ |