summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-20 15:14:21 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-20 15:14:21 +0000
commitb9ff0252d994fd4499e396a2b60b315534e6137c (patch)
tree47ff177f3dc8627d3349a101361f49edde8be378 /po
parentba693dafcce4db483a339632ae9b90f7dda96004 (diff)
downloadurpmi-b9ff0252d994fd4499e396a2b60b315534e6137c.tar
urpmi-b9ff0252d994fd4499e396a2b60b315534e6137c.tar.gz
urpmi-b9ff0252d994fd4499e396a2b60b315534e6137c.tar.bz2
urpmi-b9ff0252d994fd4499e396a2b60b315534e6137c.tar.xz
urpmi-b9ff0252d994fd4499e396a2b60b315534e6137c.zip
updated with newer po translation approach.
Diffstat (limited to 'po')
-rwxr-xr-xpo/create_placeholder11
1 files 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.$$