aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-03-11 00:40:26 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-03-11 00:40:26 +0100
commit90eab0fbc3249c327a34db4d1932506186ac606c (patch)
treecd730e438d50285a4ee85055587487033cfd43d3 /util
parent9f7878057f356ba785de26877a660bb025cae31d (diff)
downloadvolse-hubzilla-90eab0fbc3249c327a34db4d1932506186ac606c.tar.gz
volse-hubzilla-90eab0fbc3249c327a34db4d1932506186ac606c.tar.bz2
volse-hubzilla-90eab0fbc3249c327a34db4d1932506186ac606c.zip
extract string can update existing po file
Diffstat (limited to 'util')
-rw-r--r--util/run_xgettext.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/util/run_xgettext.sh b/util/run_xgettext.sh
index cd33e62dd..2cfaca487 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);