From 2db7fa5490b1cd2e824fef0f725ce2d501b412cd Mon Sep 17 00:00:00 2001 From: Fabian Egli Date: Fri, 1 Feb 2019 02:58:18 +0100 Subject: [PATCH] Fully parametrize LANG and switch to de --- Makefile | 12 ++++++------ Makefile.imgs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 32844f1..760e7cf 100644 --- a/Makefile +++ b/Makefile @@ -18,21 +18,21 @@ SRC=\ step2a-01-make-keypair.svg\ weboftrust.svg -esd-svg-temp.pot: $(foreach f,$(SRC),svg/en/$f) gnupg-infographic.svg - po4a-gettextize $(PO4A_FLAGS) $(foreach f,$+,-m $f) -p $@ +#esd-svg-temp.pot: $(foreach f,$(SRC),svg/en/$f) gnupg-infographic.svg +# po4a-gettextize $(PO4A_FLAGS) $(foreach f,$+,-m $f) -p $@ # list of languages that use the PO files (add yours if you migrate to PO) -LANG=cs +LANG=de # default target -all: $(foreach l,$(LANG),$(foreach f,$(SRC),svg/$l/$f)) gnupg-infographic-cs.svg +all: $(foreach l,$(LANG),$(foreach f,$(SRC),svg/$l/$f)) gnupg-infographic-$(LANG).svg # recipes for the individual pages in each language # Czech -svg/cs/%.svg: esd-svg-cs.po $(foreach f,$(SRC),svg/en/$f) +svg/$(LANG)/%.svg: esd-svg-$(LANG).po $(foreach f,$(SRC),svg/en/$f) po4a-translate $(PO4A_TRANSLATE_FLAGS) -m svg/en/$*.svg -p $< -l $@ -gnupg-infographic-cs.svg: esd-svg-cs.po gnupg-infographic.svg +gnupg-infographic-$(LANG).svg: esd-svg-$(LANG).po gnupg-infographic.svg po4a-translate $(PO4A_TRANSLATE_FLAGS) -m gnupg-infographic.svg -p $< -l $@ # gnupg-infographic.svg: gnupg-infographic.zip diff --git a/Makefile.imgs b/Makefile.imgs index c9b9c7e..922080e 100644 --- a/Makefile.imgs +++ b/Makefile.imgs @@ -3,7 +3,7 @@ # first run `mkdir -p img/$l/screenshots` where $l is your language code # then add your language code into the list here -LANG = cs +LANG = de # then run `make -f Makefile.imgs` which will convert the svg files automaticaly using inkscape (make sure you have the required fonts on your system) IMG = $(foreach l, $(LANG),\ -- 2.25.1