diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2002-11-28 13:15:33 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2002-11-28 13:15:33 +0000 |
commit | b948c139c99a70a4393428814dcbc5c1038a9bdd (patch) | |
tree | 591c954877cd0fb02a7cb537fd4a40663c2c1154 /po/Makefile | |
parent | 8a46a0c6f0dc547e718c283e3ead0c487cc43f93 (diff) | |
download | transfugdrake-b948c139c99a70a4393428814dcbc5c1038a9bdd.tar transfugdrake-b948c139c99a70a4393428814dcbc5c1038a9bdd.tar.gz transfugdrake-b948c139c99a70a4393428814dcbc5c1038a9bdd.tar.bz2 transfugdrake-b948c139c99a70a4393428814dcbc5c1038a9bdd.tar.xz transfugdrake-b948c139c99a70a4393428814dcbc5c1038a9bdd.zip |
Added Estonian file,
Improved creation of *.pot file
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/po/Makefile b/po/Makefile index 49f5485..17bc4a0 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,11 +1,20 @@ # Installation directories localedir = $(prefix)/usr/share/locale -LANGS = $(shell ls *.po | xargs -i basename {} .po ) PGOAL = transfugdrake -GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo) -# $(foreach a, $(LANGS), $($(a).mo)) +# perl files to search translatable strings in +PL_FILES = ../transfugdrake ../transfugdrake.pm +# C-like files to search translatable strings in +#CFILES = ./placeholder.h + +PL_CFILES = $(PL_FILES:%=%_.c) +POFILES = $(shell ls *.po) +MOFILES = $(POFILES:%.po=%.mo) +LANGS = $(POFILES:%.po=%) + +GOALS = $(PGOAL).pot $(MOFILES) + all: $(GOALS) @@ -16,14 +25,21 @@ install: all done clean: - rm -f *~ *.[oas] *.mo $(GOALS) TAGS + @rm -rf *~ *.mo $(GOALS) $(PL_CFILES) %.mo: %.po msgfmt -o $@ $< -%.pot: POTFILES.in - xgettext --default-domain=`basename $@ .pot` --directory=.. \ - --add-comments --keyword=__ --keyword=_ --keyword=N_ \ - --keyword=I_ --keyword=i18n \ - --files-from=./POTFILES.in && \ - mv `basename $@ .pot`.po $@ +$(PL_CFILES): %_.c: % + ./fake_c.pl $< > $@ + +$(PGOAL).pot: $(PL_CFILES) $(CFILES) + xgettext --default-domain=$(PGOAL) -F -n \ + --add-comments='-PO' --add-comments=' Translator:'\ + --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ + --keyword=I_ --keyword=i18n \ + --keyword=gettext \ + --language=C $(PL_CFILES) $(CFILES) + mv -f $(PGOAL).po $(PGOAL).pot + @rm -rf $(PL_CFILES) + |