From b9ff0252d994fd4499e396a2b60b315534e6137c Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 20 Jun 2001 15:14:21 +0000 Subject: updated with newer po translation approach. --- po/create_placeholder | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/po/create_placeholder b/po/create_placeholder index be7ed316..e4b01bcf 100755 --- a/po/create_placeholder +++ b/po/create_placeholder @@ -1,19 +1,16 @@ #!/bin/sh -cd .. echo -e "\ /* this is a placeholder so that xgettext can find the translatable * strings. This file is automatically generated, look at - * po/create_placeholder + * ./create_placeholder */ char *foobar[] = { " > placeholder.h.$$ -cat `grep -v placeholder.h po/POTFILES.in` | \ - grep '$ECHO ".*"' | \ - sed 's/^.*$ECHO \(".*"\)/N_(\1),/g' >> placeholder.h.$$ +cat $* | perl -ne 's/\$ECHO\s+(".*")/N_($1),/g and print' >> placeholder.h.$$ -for i in `grep -v placeholder.h po/POTFILES.in` +for i in $* do - po/pl_create_placeholder $i >> placeholder.h.$$ + ./pl_create_placeholder $i >> placeholder.h.$$ done echo "};" >> placeholder.h.$$ -- cgit v1.2.1