From 90eab0fbc3249c327a34db4d1932506186ac606c Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Fri, 11 Mar 2011 00:40:26 +0100 Subject: [PATCH] extract string can update existing po file --- util/run_xgettext.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/util/run_xgettext.sh b/util/run_xgettext.sh index cd33e62dd5..2cfaca4870 100644 --- a/util/run_xgettext.sh +++ b/util/run_xgettext.sh @@ -2,9 +2,16 @@ cd $(dirname $0) +OPTS= + +if [ -e "$1" ] +then + OPTS="-j -o $1" +fi + KEYWORDS="-k -kt -ktt:1,2" - -find .. -name "*.php" | xargs xgettext $KEYWORDS --from-code=UTF-8 + +find .. -name "*.php" | xargs xgettext $KEYWORDS $OPTS --from-code=UTF-8 F9KVERSION=$(sed -n "s/.*'FRIENDIKA_VERSION'.*'\([0-9.]*\)'.*/\1/p" ../boot.php);