From 1108fa9622d419cbff98bcf1e00d3445686eeb6d Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 7 Aug 2008 21:00:22 -0400 Subject: fix up the code to generate the message catagalogs a bit. We do not currently have very good message tagging at the moment, however, which needs to be fix. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bc29bad..4fbfdb3 100755 --- a/Makefile +++ b/Makefile @@ -4,6 +4,10 @@ NEWRELEASE = $(shell echo $$(($(RELEASE) + 1))) MESSAGESPOT=po/messages.pot +# file to get translation strings from, little ugly, but it works +POTFILES = func/*.py func/overlord/*.py func/minion/*.py func/minion/modules/*.py \ + func/overlord/cmd_modules/*.py func/overlord/modules/*.py + TOPDIR = $(shell pwd) DIRS = func docs examples scripts test test/unittest funcweb PYDIRS = func scripts examples funcweb @@ -19,8 +23,8 @@ manpage: pod2man --center="func-inventory" --release="" ./docs/func-inventory.pod | gzip -c > ./docs/func-inventory.1.gz pod2man --center="func-transmit" --release="" ./docs/func-transmit.pod | gzip -c > ./docs/func-transmit.1.gz -messages: func/minion/*.py - xgettext -k_ -kN_ -o $(MESSAGESPOT) func/minion/*.py +messages: + xgettext -k_ -kN_ -o $(MESSAGESPOT) $(POTFILES) sed -i'~' -e 's/SOME DESCRIPTIVE TITLE/func/g' -e 's/YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/2007 Red Hat, inc. /g' -e 's/FIRST AUTHOR , YEAR/Adrian Likins , 2007/g' -e 's/PACKAGE VERSION/func $(VERSION)-$(RELEASE)/g' -e 's/PACKAGE/func/g' $(MESSAGESPOT) -- cgit